Contact Us

Use the form on the right to contact us.

You can edit the text in this area, and change where the contact form on the right submits to, by entering edit mode using the modes on the bottom right. 


Oak Ridge, TN, 37830
United States

Swift-Snips

Error : does not contain bitcode!

Wade Cantley

Ok, so here is the full error.


ld: ‘/Users/chriscantley/Documents/GITXCodeRepository/ MyMobi/Pods/Google/Libraries/libGGLAnalytics.a(GGLContext+Analytics.o)’ does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

But why?

Turns out that not all of the frameworks I am using are Bitcode savvy. 

But what is this Bitcode thing?

Having Bitcode on compiles an app out to a format that allows apple to thin out the application and make it more efficient.  This is on by default as far as I can tell in XCode 7.  However if you are using frameworks that don't use bitcode, this conflict will come up.  So evidently it needs to be all or nothing when it comes to bitcode.  

In this case I am using Google analytics and it is NOT using bitcode.  So the solution turns out to be pretty simple.

  1. Find bitcode under your build settings
    1. Click on your project
    2. Select you app target.
    3. select "Build Settings"
    4. Search for "bitcode" which should present the setting under "Build Options"
    5. Set "Enable Bitcode" to "No"

1. Click on your project

1. Click on your project

2. Select your app target

2. Select your app target

3) select "Build Settings"

3) select "Build Settings"


4) Search for "Bitcode"

4) Search for "Bitcode"

5) Set "Enable Bitcode" to "no"

5) Set "Enable Bitcode" to "no"


Archive and the error should go away.