Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 227
Robert Atkins Avatar asked Jan 13 '16 15:01

Robert Atkins


People also ask

Should I include Bitcode for iOS content?

For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.

What is the use of Bitcode in Xcode?

Bitcode is an Apple technology that enables you to recompile your app to reduce its size. The recompilation happens when you upload your app to App Store Connect or export it for Ad Hoc, Development, or Enterprise distribution.


1 Answers

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

like image 88
Robert Atkins Avatar answered Oct 06 '22 09:10

Robert Atkins