Carthage: Build frameworks without BITCODE

Created on 2 Oct 2015  路  4Comments  路  Source: Carthage/Carthage

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

question

Most helpful comment

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)

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zTrix picture zTrix  路  29Comments

michaeleisel picture michaeleisel  路  44Comments

NachoSoto picture NachoSoto  路  50Comments

gokselkoksal picture gokselkoksal  路  31Comments

davbeck picture davbeck  路  54Comments