Robert Atkins
Robert Atkins

Reputation: 24668

ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

I want to build my app with Bitcode enabled. As far as I know all my 3rd party library dependencies are Bitcode enabled. But when I do a build, I get this error:

ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

How do I fix this?

Upvotes: 22

Views: 5140

Answers (1)

Robert Atkins
Robert Atkins

Reputation: 24668

I had erroneously set my DEBUG and TEST configurations to build with Bitcode, and this was what caused the above error. Enabling Bitcode only for RELEASE fixed it:

enter image description here

(Your App and any embedded framework targets should look like this—don't enable Bitcode at all on your test and UI testing targets.)

Upvotes: 30

Related Questions