I have followed several threads around the new ENABLE_BITCODE setting in Xcode, have also tried as much as I can (admitted I\'m not a xcode pro) but still cannot get the pro
As everybody said, the answer is set Enable Bitcode to No in build settings, but I think some of you might be interested in doing this from the command line.
My Xcode project is being generated by Unity and I don't want any manual intervention on the Xcode project settings. Maybe there's a better way or a tool that can edit Build Settings a bit like how PlistBuddy lets you update values in plist files. I don't know any tool that does this for build settings so I'm using sed.
sed: Run replacements based on regular expressions.
Enable Bitcode to No from command line:Here, my project name is Unity-iPhone so I run the following command from the root of my Xcode project:
sed -i -e 's/ENABLE_BITCODE = YES;/ENABLE_BITCODE = NO;/g' \
Unity-iPhone.xcodeproj/project.pbxproj
-e -- specify sed commands to run
-i -- edit files in-place, running scripts separately for each file
Remove -i if you only want a preview of what it does ;)
Note that all of your build configurations will be changed using this command, the line ENABLE_BITCODE = YES; appeared 6 times in my project.pbxproj.
Now my build steps can be fully automated as fastlane takes care of the rest!