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
How about bitcode for iOS apps? It was never required for iOS, the way it was for watchOS and tvOS.
For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With