Xcode 7:-weak_library和-bitcode_bundle不能一起使用

Fel*_*lix 6 ld weak-linking xcode7 bitcode

当使用Xcode7部署到iPhone和Apple Watch时,我收到此错误:

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

想问一下如何最好地解决这个问题?

后续行动:Apple Watch需要基于bitcode的库,基于iOS 9中的新警告 - >我们可能必须为所有库启用bitcode.

Fel*_*lix 2

根据Apple的[App Thinning and Bitcode ]

引用:对于 iOS 应用程序,位码是默认值,但可选。如果您提供位码,则应用程序包中的所有应用程序和框架都需要包含位码。对于 watchOS 应用程序,需要位码。

因此,我可以在 iPhone 应用程序的“构建设置”中关闭 Bitcode,并仅针对 Watch 应用程序启用 Bitcode。