Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【iOS】Carthage build Framework Auto Disable Bitcode #2440

Closed
josercc opened this issue May 3, 2018 · 3 comments
Closed

【iOS】Carthage build Framework Auto Disable Bitcode #2440

josercc opened this issue May 3, 2018 · 3 comments
Labels

Comments

@josercc
Copy link

josercc commented May 3, 2018

Our project uses some unknown third-party libraries and they don't support Bitcode. In order to be able to compile and package properly, we turned off BitCode functionality. Our latest code uses Carthage to host more than 20 libraries, but the default is to enable Bitcode. This causes the package to force the opening of Bitcode and will fail to pack. I now want to disable Bitcode before the Carthage Build Framework. What should I do?

@brennantaylor
Copy link

You can add an xcconfig file for carthage to add build properties when building the frameworks. I've had to do a similar thing:

XCODE_XCCONFIG_FILE="somefile.xcconfig" carthage bootstrap --platform iOS

somefile.xcconfig could contain or any other build config you need.

ENABLE_BITCODE[sdk=iphoneos*] = NO

@josercc
Copy link
Author

josercc commented May 10, 2018

Thanks

@tmspzz
Copy link
Member

tmspzz commented May 18, 2018

Closing. Please feel free to reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants