6.0 之前的 iOS 版本不支持 -fembed-bitcode

-fembed-bitcode is not supported on versions of iOS prior to 6.0

最近我下载了 xcode 7 beta 并遇到错误:

-fembed-bitcode 在 6.0

之前的 iOS 版本上不受支持

是否可以在不更改部署目标的情况下解决此问题?

提前致谢。

最近发现这个,这似乎暗示你需要为每个框架启用位码。

"Xcode 7 has a ENABLE_BITCODE option to embed bitcode in apps, app extensions, and frameworks. The option is turned on by default for iOS and is mandatory for watchOS projects submitted to the store. When bitcode is enabled for a target, all the objects, static libraries and user frameworks used when linking that target must contain bitcode. Otherwise, an error or a warning will be issued by the linker. (Note: missing bitcode is currently a warning for iOS, but it will become an error in an upcoming beta release of Xcode 7.) ENABLE_BITCODE should be consistently turned on for all the targets. If you use a library or framework provided by a third party, please contact the vendor for an updated version which contains bitcode." Dear God, do we need to wait for all libs to update? :S

来源 (link)

如果您不打算支持 Apple Watch,您可以通过在项目和目标中搜索 BITCODE 来关闭该选项。将选项更改为否。

我试图 运行 应用程序的 AudioModem code (set to target iOS 5.1) on an iOS 9.1 device. For me, simply changing the deployment target 到 9.0(令人难以置信!)有效(不知何故没有引入其他错误?!)。