【问题标题】:Using objective-c to build a cisco jabber client,but error message pop up:"does not contain bitcode"使用objective-c搭建cisco jabber客户端,但弹出错误信息:“does not contain bitcode”
【发布时间】:2016-11-30 05:28:28
【问题描述】:

我下载 JabberGuest SDK for iOS,并关注 https://developer.cisco.com/site/jabber-guestsdk/learn/tutorials/v10_6_9/#steps28 这个公会。我正在尝试使用 CJGuestCallViewController 使用情节提要创建一个新的演示应用程序。

但是弹出错误信息:

JabberGuest.framework/JabberGuest(CJGuestCallViewController.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

我尝试将启用位码切换为“否”,这会导致其他 60 个错误。我还尝试在构建阶段将 jabberGuest.framework 添加到编译源和链接二进制文件中。它也不起作用。我尝试了所有可以在网上找到的东西,包括清理偏好位置中的派生数据。重新启动计算机。我还是在这里呆了一整天。

需要帮助!

我使用的是 xcode 8.1。 适用于 iOS 的 Jabber 访客 - 10.6.11

如果您需要更多信息,请告诉我。

如能解决此问题,我们将不胜感激。

【问题讨论】:

  • 我找到了一些东西。当我尝试使用他们提供的 viewController 初始化 viewController 时。会有“位码”问题。如“CJGuestCallViewController *newView = [[CJGuestCallViewController alloc]init];”

标签: ios objective-c xcode xmpp bitcode


【解决方案1】:

我解决了这个问题:

  1. 在项目构建设置中:仅在构建活动架构中 部分,选择编号。
  2. 如果您的应用是通用二进制文件,请在有效架构部分输入 armv7 arm64,否则选择 armv7 或 arm64。
  3. 在其他链接器标志部分,添加 -ObjC。
  4. 必须将 C++ 标准库构建设置设置为 libc++(支持 C++11 的 LLVM C++ 标准库)。
  5. 在启用位码部分,选择否。

问题解决了!

【讨论】:

    猜你喜欢
    • 2022-12-05
    • 2022-12-27
    • 1970-01-01
    • 2021-04-11
    • 2013-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多