Robert Atkins Robert Atkins - 5 months ago 94
Swift Question

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?

Answer

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.)

Comments