1024programmer News About the error solution of “doesnotcontainbitcode.”

About the error solution of “doesnotcontainbitcode.”

When Xcode8 runs the project, the following error occurs:

does not contain bitcode. You must rebuild it with bitcode enabled

(Xcode setting ENABLE_BITCODE), obtain an updated library from the

vendor, or disable bitcode for this target. for architecture armv7

About any bitcode error, what the hell is bitcode?

What is bitcode?

Popular explanation: the online version of Android ART mode.

Apple official documentation – App Distribution Guide – App Thinning (iOS, watchOS) is defined as follows:

Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the App Store. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to submit a new version of your app to the store.

The translation is:

bitcode is an intermediate form of code for the compiled program. Apps that include bitcode configuration will be compiled and linked on the App Store. bitcode allows Apple to re-optimize our program’s binaries later without requiring us to resubmit a new version to the App Store.

Introduction to Xcode—What’s New in Xcode-New Features in Xcode 7 This is described in:

Bitcode. When you archive for submission to the App Store, Xcode will compile your app into an intermediate representation. The App Store will then compile the bitcode down into the 64 or 32 bit executables as necessary.

That is

When we submit the program to the App Store, Xcode will compile the program into an intermediate representation ( bitcode ). The App store will then compile this bitcode into an executable 64-bit or 32-bit program.

Please see here http://blog.csdn.net/soindy/article/details/48518717

If your application is also going to enable the Bitcode compilation mechanism, you need to pay attention to the following Point:

Bitcode is enabled by default in Xcode 7. If Bitcode is enabled for an application, other third-party libraries integrated with it must also be Bitcode-compiled packages to actually perform Bitcode compilation

Enable Bitcode compilation Afterwards, the volume of the compiled .app will increase (intermediate code, not the package downloaded by the user), and the .dSYM file cannot be used to symbolize the crash log (the package downloaded by the user is recompiled by Apple services, and some new symbol file)

Upload the AppStore package through Archive, and download the new symbol file corresponding to the installation package in the Organizer tool of Xcode

What is the reason for the problem?

It turns out that some binary libraries do not support bitcode. Xcode supports bitcode by default, and if it is supported, all binary libraries and frameworks must contain bitcode.

How to solve it?

We can just turn off the bitcode directly. target —> Built Seeting —> Search bitcode —> Set Yes to No

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/about-the-error-solution-of-doesnotcontainbitcode/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索