xcode - ld : -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

标签 xcode swift bitcode

我想构建我的应用并启用 Bitcode。据我所知,我所有的第 3 方库依赖项都启用了 Bitcode。但是当我进行构建时,出现此错误:

ld: -bundle 和 -bitcode_bundle(Xcode 设置 ENABLE_BITCODE=YES)不能一起使用

我该如何解决这个问题?

最佳答案

我错误地将我的 DEBUGTEST 配置设置为使用 Bitcode 构建,这就是导致上述错误的原因。仅为 RELEASE 启用 Bitcode 修复了它:

enter image description here

(您的应用程序和任何嵌入式框架目标应如下所示——根本不要在您的测试和 UI 测试目标上启用 Bitcode。)

关于xcode - ld : -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34770802/

相关文章:

ios - 无法为 arm64 生成位码包

xcode - 必须使用 XCode SDK 4 吗?

ios - 离开/关闭按钮操作上的文本字段

xcode - Swift 从完成处理程序中显示 View Controller

c - 如何使 clang 编译为 llvm IR

ios - 如何为 WebRTC iOS 框架启用 Bitcode?

ios - Xcode 7.1 iOS 9.1 CLLocationManager 不总是工作?

ios - 越狱应用程序开发构建和运行应用程序

ios - 为什么我的 SearchController 只匹配第一个字符?

ios - 点击发送或取消按钮后如何关闭邮件 View Controller