【问题标题】:warning: ignoring file ../lib/mobileRTC.framework/mobileRTC, missing required architecture x86_64 in file ../lib/mobileRTC.framework/mobileRTC警告:忽略文件 ../lib/mobileRTC.framework/mobileRTC,在文件 ../lib/mobileRTC.framework/mobileRTC 中缺少所需的架构 x86_64
【发布时间】:2018-01-30 10:25:46
【问题描述】:

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

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

我仔细检查了所有说明,并到处寻找有关“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)

有人知道如何解决这个警告吗?我觉得如果我能以某种方式使其不忽略该框架,错误就会消失。

【问题讨论】:

    标签: ios xcode frameworks zoom-sdk


    【解决方案1】:

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

    【讨论】:

    • 感谢您的快速回复。我也读到过这个,但我正在使用远程 os x 设备,我别无选择,只能使用模拟器。
    • 那么你可能需要向框架供应商解决这个问题,为什么他们没有为 x86_64 架构构建库,这很奇怪
    • 另一个疯狂的想法是使用该软件将 USB 设备连接到远程计算机。这种方法我试过一次,效果很好)
    • 我会的。谢谢。如果我有机会在真实设备上试用它并且它可以工作,我会给予你的信任。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-10
    • 1970-01-01
    • 2013-10-15
    • 2013-12-14
    • 2014-12-20
    • 1970-01-01
    • 2012-04-11
    相关资源
    最近更新 更多