警告:忽略文件../lib/mobileRTC.framework/mobileRTC,缺少文件中所需的体系结构x86_64 ../lib/mobileRTC.framework/mobileRTC

时间:2018-01-30 10:25:46

标签: ios xcode frameworks zoom

我正在尝试运行zoom api的示例项目。

https://github.com/zoom/zoom-sdk-ios

我仔细检查了所有说明并查找了#Apple; Apple mach-O链接器错误。"所有结果都是关于框架的链接。我将所有框架都包含在Link Binary With Libraries中。然后,最重要的是我注意到这个错误,警告说由于缺少架构而忽略了框架。以下是警告和错误列表。

ld: warning: ignoring file ../lib/mobileRTC.framework/mobileRTC, missing required architecture x86_64 in file ../lib/mobileRTC.framework/mobileRTC (2 slices)
    Undefined symbols for architecture x86_64:
      "_kMeetingParam_UserID", referenced from:
          -[MainViewController startMeeting:] in MainViewController.o
      "_kMeetingParam_IsAppShare", referenced from:
          -[MainViewController startMeeting:] in MainViewController.o
      "_kMeetingParam_MeetingNumber", referenced from:
          -[MainViewController startMeeting:] in MainViewController.o
          -[MainViewController joinMeeting:withPassword:] in MainViewController.o
      "_kMeetingParam_MeetingPassword", referenced from:
          -[MainViewController joinMeeting:withPassword:] in MainViewController.o
      "_kMeetingParam_Username", referenced from:
          -[MainViewController startMeeting:] in MainViewController.o
          -[MainViewController joinMeeting:withPassword:] in MainViewController.o
      "_OBJC_CLASS_$_MobileRTC", referenced from:
          objc-class-ref in InviteViewController.o
          objc-class-ref in AppDelegate.o
          objc-class-ref in LanguaguePickerViewController.o
          objc-class-ref in ScheduleTableViewController.o
          objc-class-ref in MeetingSettingsViewController.o
          objc-class-ref in MainViewController.o
          objc-class-ref in SettingsViewController.o
          ...
      "_kMeetingParam_UserType", referenced from:
          -[MainViewController startMeeting:] in MainViewController.o
      "_kMeetingParam_UserToken", referenced from:
          -[MainViewController startMeeting:] in MainViewController.o
      "_OBJC_CLASS_$_MobileRTCInviteHelper", referenced from:
          objc-class-ref in InviteViewController.o
          objc-class-ref in MainViewController.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

有没有人知道如何修复此警告?我觉得如果我能以某种方式让它不要忽视那个框架,那么错误就会消失。

1 个答案:

答案 0 :(得分:1)

看起来MobileRTC.framework确实没有包含x86二进制文件。如果您尝试在真实设备上启动项目,那么您将获得成功。