Search code examples
xcodebitcode

Enable bitcode not in build options


With XCode 9.2, I am getting the ld error:

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

However my Build Options do not contain any entry for Enable Bitcode, and when I try to find it via the search bar I don't find anything.

How can I set ENABLE_BITCODE=NO ? And, any idea why it doesn't show up?

Thanks.


Solution

  • Open the target "Build settings" then select "All" and "Combined" options. In the search field, type "bitcode" and select the value to "NO"

    If the Enable Bitcode option is not on the list of the search results then check if Architecture and BaseSDK options are set up correctly.