[英]-fembed-bitcode is not supported on versions of iOS prior to 6.0
Recently i downloaded xcode 7 beta and facing the error: 最近我下载了xcode 7 beta并面临错误:
-fembed-bitcode is not supported on versions of iOS prior to 6.0 6.0之前的iOS版本不支持-fembed-bitcode
Is there any work around to fix this issue with out changing deployment target? 是否有任何解决方法可以解决此问题而无需更改部署目标?
Thanks in advance. 提前致谢。
Found this recently, which seems to imply that you need to enable bitcode for each framework. 最近发现这似乎意味着你需要为每个框架启用bitcode。
"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."
“Xcode 7有一个ENABLE_BITCODE选项,可以在应用程序,应用程序扩展和框架中嵌入bitcode。默认情况下,该选项为iOS启用,对于提交给商店的watchOS项目是必需的。当为目标启用bitcode时,所有对象,链接该目标时使用的静态库和用户框架必须包含bitcode。否则,链接器将发出错误或警告。(注意:缺少bitcode目前是iOS的警告,但它将成为即将发生的错误Xcode 7的beta版本。)应始终为所有目标启用ENABLE_BITCODE。如果您使用第三方提供的库或框架,请联系供应商以获取包含bitcode的更新版本。“ Dear God, do we need to wait for all libs to update?
亲爱的上帝,我们需要等待所有的库更新吗? :S
:S
If you don't plan to support Apple Watch you can turn off the option by searching for BITCODE in the project and the target. 如果您不打算支持Apple Watch,可以通过在项目和目标中搜索BITCODE来关闭该选项。 Change the option to No.
将选项更改为否。
I was trying to run the AudioModem code (set to target iOS 5.1) on an iOS 9.1 device. 我试图在iOS 9.1设备上运行AudioModem代码(设置为目标iOS 5.1)。 For me, simply changing the deployment target of the app to 9.0 (incredibly!) worked (somehow without introducing other errors?!).
对我来说,只需将应用程序的部署目标更改为9.0(令人难以置信!)工作(不知何故没有引入其他错误?!)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.