BitCode

Posted Mars_king

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了BitCode相关的知识,希望对你有一定的参考价值。

今天在ios上编译原来开发的代码,出现了以下错误

xxxx.o does not contain bitcode. You must rebuild it with bitcode enabled (Xcodesetting ENABLE_BITCODE)

百度后知道Xcode7.0以后会默认开启Bitcode模式,很多旧的静态库由于编译问题,无法支持Bitcode,需要重新编译才能使用。

如果不想重新编译,只需要关闭Bitcode就可以了

具体按以下操作:
在Targets -> Build Settings -> Build Options 下
将Enable Bitcode 设置为NO即可

以上是关于BitCode的主要内容,如果未能解决你的问题,请参考以下文章