Question about setting ENABLE_BITCODE option

There is an app has external libraries that built without bitcode.

I want to build the app with 'ENABLE_BITCODE =(YES)' option.


<questions>

Q1. Is the app able to built with bitcode in Xcode7 with (ENABLE_BITCODE = YES)?

(I had an error message like below)

ld: 'xxxxxxxxxxxxxxxx/xxxxxxxxx-sdk-i386-armv7-armv7s-arm64.a(xxxxxxx.o)' 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 arm64


Q2. How can I check whether the external library has bitcode without library provider comment?

Accepted Answer

Hi,


A1: all of the supplied libraries _have_ to support Bitcode in order for the main target that includes them to support Bitcode

A2: try to compile project with Bitcode enabled to check whether all of the dependencies support Bitcode.

In general, in order to support bitcode for a target, all of its dependencies also have to be compiled with enabled Bitcode option in project settings.

Thank you for your answer.

I confirm your answer.

Because My project has many external libraries without bitcode, I will set the bitcode setting to disable in my project.

Question about setting ENABLE_BITCODE option
 
 
Q