Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bitcode Enabled - Prepare for iOS 9 (xcode7 beta, iOS 6 support)

Tags:

ios

ios9

bitcode

I have a static library that support iOS 5 and above, and we're trying to prepare to the upcoming iOS 9.

After searching several sources, I couldn't find direct answers to the following:

  1. Is bitcode mandatory? What would happen if I'll set Enable Bitcode = False how would it affect the host app?

This post implies that as a static library, I must enable bitcode.

  1. While trying to build the library I get an error: -fembed-bitcode is not supported on versions of iOS prior to 6.0 Can I choose to turn it off for certain iOS version? Is there a proper way to handle it.
like image 826
U_D Avatar asked Aug 23 '26 19:08

U_D


1 Answers

No, Bitcode is not currently mandatory unless your app has a watchOS extension.

However, if an app wants to enable Bitcode, then all libraries and frameworks that it uses must also have Bitcode enabled. So if you disable Bitcode for your library, nobody who wants to enable Bitcode will be able to use it.

There's currently no way to conditionally enable/disable Bitcode. This is one of the reasons that many library providers are End-Of-Life on iOS 5 support as of iOS 9.

like image 182
Chris Allwein Avatar answered Aug 26 '26 12:08

Chris Allwein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!