Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable or disable bitcode for specific library or SDK in Xcode project

I have many external libraries and SDKs in my project. And some of them does not support bitcode. So I have to disable bitcode. But some libraries like ParseCrashReporting, does require it to symbolicate the crash reports.

I want to disable and enable bitcode for specific libraries. How I can achieve that? Is it even possible?

Thanks

like image 793
iBug Avatar asked Oct 05 '15 11:10

iBug


People also ask

Where is enable Bitcode in XCode?

When building an application with XCode, we have an option to set the Enable Bitcode flag to either YES or NO via Build Settings > Build Options.

How do I disable Bitcode target?

To disable Bitcode, go to the Build Settings tab of your workspace, scroll down to Build Options , and set Enable Bitcode to No.

Is it safe to disable Bitcode?

If you turn BitCode on, then the intermediate representation of the compiled program gets uploaded and Apple will able to recompile and/or optimize your apps for future architectures (as described here). Turning it off is very safe for the time being.

What is the use of Bitcode in XCode?

Bitcode is an Apple technology that enables you to recompile your app to reduce its size. The recompilation happens when you upload your app to App Store Connect or export it for Ad Hoc, Development, or Enterprise distribution.


1 Answers

You can't. The library itself has to be built with support of bitcode. However, in case you have to ship you app right now and you don't have time for waiting while they update their library - you can disable bitcode support for your whole project. Once you have updated library with bitcode support - just enable it back on and update your app in the AppStore.

To enable/disable bitcode support go to Project > Build Settings > search for 'bitcode' in the searchfield > set to YES/NO.

like image 68
Soberman Avatar answered Nov 01 '22 10:11

Soberman