banner
李大仁博客

李大仁博客

天地虽大,但有一念向善,心存良知,虽凡夫俗子,皆可为圣贤。

[iOS] Xcode 7.0 Disable Bitcode Compilation

Today, when compiling the code developed on iOS, the following error occurred:

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

After searching on Baidu, I found out that starting from Xcode 7.0, Bitcode mode is enabled by default. Many old static libraries cannot support Bitcode due to compilation issues and need to be recompiled in order to be used.

If you don't want to recompile, you just need to disable Bitcode.

Follow these steps: Go to Targets -> Build Settings -> Build Options and set Enable Bitcode to NO.

Reference: http://www.cocoachina.com/ios/20150817/13078.html

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.