6.0之前的iOS版本不支持-fembed-bitcode [英] -fembed-bitcode is not supported on versions of iOS prior to 6.0

查看:359
本文介绍了6.0之前的iOS版本不支持-fembed-bitcode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我下载了xcode 7 beta并面临错误:

Recently i downloaded xcode 7 beta and facing the error:

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

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

有没有解决这个问题的工作没有改变部署目标?

Is there any work around to fix this issue with out changing deployment target?

提前致谢。

推荐答案

最近发现了这一点,这似乎暗示你需要为每个框架启用bitcode。

Found this recently, which seems to imply that you need to enable bitcode for each framework.


Xcode 7有一个ENABLE_BITCODE选项,可以在应用程序,app
扩展和框架中嵌入bitcode。默认情况下,该选项为iOS
打开,对于提交的watchOS项目是必需的当为目标启用
bitcode时,链接该目标时使用的所有对象,静态库和
用户框架必须包含bitcode。
否则,错误或警告将由链接器发出。(注意:
缺少bitcode目前是iOS的警告,但它将成为
错误在即将发布的Xcode 7测试版中。)ENABLE_BITCODE应该为所有目标始终打开
。如果您使用第三方提供的库或
框架,请联系供应商获取包含bitcode的
更新版本。亲爱的上帝,我们需要等待
所有库更新?:S

"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

来源(链接

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

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. Change the option to No.

这篇关于6.0之前的iOS版本不支持-fembed-bitcode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆