Hi there,
I'm using Carthage in a project that should be compiled without bitcode enabled (as there are some of the dependencies don't support bitcode).
Is there any way to specify that the frameworks should be built with the setting ENABLE_BITCODE set to NO? Currently, I'm manually overriding this in the project settings, but it would be much handier if this could be a command line argument in the build / update commands.
Kind regards,
pieter
We've just had our app rejected by Apple for this (seems to be a new thing, another build built the same way was accepted a couple of weeks ago).
Dear developer,
We have discovered one or more issues with your recent delivery for "3DR Solo". To process your delivery, the following issues must be corrected:
Invalid Bundle - Failed to verify bitcode in Alamofire.framework/Alamofire: error: Bundle only contains bitcode-marker Solo.app/Frameworks/Alamofire.framework/Alamofire (armv7) ...
[Same error repeated for all our embedded frameworks]
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team
Possible (but untested) solution:
Create an xcconfig file that disables BITCODE and then export this in the XCODE_XCCONFIG_FILE environment variable (see xcodebuild's manage for XCODE_XCCONFIG_FILE)
There's some more information about this in #535.
Setting ENABLE_BITCODE to NO on your project would be the right thing to do. Closing.
Most helpful comment
Possible (but untested) solution:
Create an xcconfig file that disables BITCODE and then export this in the
XCODE_XCCONFIG_FILEenvironment variable (see xcodebuild's manage for XCODE_XCCONFIG_FILE)