IOS: xcodebuild command disable bitcode in Build Settings

JavaAndroider picture JavaAndroider · Oct 1, 2015 · Viewed 7.3k times · Source

I want to disable Bitcode in the build settings of a .xcodeproj through terminal commands. I have searched all over but only found commands to build or archive the project from the terminal. Can you please give me an example how this command looks like?

Thank you

Answer

oyvindhauge picture oyvindhauge · Oct 1, 2015

You can list all the keys and values of your project build settings with the command

xcodebuild -showBuildSettings

Then find one or more keys you want to override, e.g. ENABLE_BITCODE. These keys can be included as parameters in the build command like so:

xcodebuild -target <your target> -configuration <your configuration> ENABLE_BITCODE=NO