Cœur
Cœur

Reputation: 38667

How to disable Bitcode on Carthage dependencies

How to disable Bitcode on dependencies where it's enabled?

This question is the opposite scenario of the question "Bitcode disabled on Carthage dependencies". Unfortunately, while the given answer by the OP was using a nice trick by stripping all instances of ENABLE_BITCODE = NO; in the project file, it's inapplicable to add that line where it's missing.

Upvotes: 5

Views: 552

Answers (1)

Cœur
Cœur

Reputation: 38667

  1. Have an xcconfig file for carthage to add build properties when building the frameworks.
XCODE_XCCONFIG_FILE="myConfigFile.xcconfig" carthage bootstrap --platform iOS
  1. Where myConfigFile.xcconfig would disable bitcode:
ENABLE_BITCODE[sdk=iphoneos*] = NO

Credit Brennan Taylor on https://github.com/Carthage/Carthage/issues/2440.

Thanks to Benjamin Bojko for the link.

Upvotes: 2

Related Questions