ios - 警告 : ignoring file . ./lib/mobileRTC.framework/mobileRTC,文件 ../lib/mobileRTC.framework/mobileRTC 中缺少所需的体系结构 x86_64

标签 ios xcode frameworks zoom-sdk

我正在尝试运行 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)

有谁知道如何修复此警告?我觉得如果我能以某种方式让它不忽略该框架,错误就会消失。

最佳答案

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

关于ios - 警告 : ignoring file . ./lib/mobileRTC.framework/mobileRTC,文件 ../lib/mobileRTC.framework/mobileRTC 中缺少所需的体系结构 x86_64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48519112/

相关文章:

ios - 如何比较 objective-c 中的两个 NSDate 对象

ios - 无法在 iOS Swift 中使用 Assets 运行动画

iphone - 大于特定月份的 SQLite 日期时间

ios - View Controller 上缺少导航栏

php - 有没有一种(简单的)方法可以在纯 PHP 中分离模型,这样做的好方法是什么?

ios - 与 completionBlock 异步下载和保存文件时 CollectionView 单元格图像错误

验证时 iOS 分发证书未连接

swift : add BigInteger framework

python - 如何在 Django 模型中编写方法来检索相关对象?

objective-c - 如何在IOS中创建列表内列表