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

3

我正在尝试运行Zoom API的示例项目。

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

我仔细检查了所有的指令,并在各处搜索了“Apple Mach-O链接器错误”的信息。所有的结果都是关于链接框架的。我已经在“链接二进制文件与库”中包含了所有的框架。然后,在所有的错误上面,我注意到了这个警告,它提到由于缺少体系结构而忽略了框架。以下是警告和错误列表。
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个回答

4

看起来MobileRTC.framework确实不包含x86二进制文件。如果你尝试在真实设备上启动项目,你会成功的。


感谢您的快速回复。我也了解到这一点,但我正在使用远程OS X设备,除了使用模拟器外,我别无选择。 - Ali Barış Uzuner
那么,您可能需要向框架供应商提出这个问题,为什么他们没有为x86_64架构构建库,这很奇怪。 - heximal
另一个疯狂的想法是使用软件连接远程计算机的USB设备。我曾经尝试过这种方法,它是有效的。 - heximal
我会的。谢谢。如果有机会在真实设备上尝试并且它能够工作,我会给你以赞扬。 - Ali Barış Uzuner

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接