我有一个可可豆荚作为我的应用程序中使用的库的依赖项管理器。而且我有 Apple Watch 支持 - 所以在安装 Xcode 7 beta 3 后,我在编译过程中收到了一个错误:
ld: '/Users/**************/********/**************/Pods/FlurrySDK/Flurry/libFlurry_6.6.0.a(libFlurry.a-armv7-master.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 armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
在我的扩展目标中,我没有找到设置选项ENABLE_BITCODE = NO
。
据我了解,对于 Apple Watch,我必须提供所有使用位码选项构建的库。
我尝试仅为主要的主应用程序目标添加 pod,以防止库与应用程序扩展的链接,但无论如何我仍然收到此链接错误。
如何在最新的 Xcode 测试版中构建我的应用程序?