Using Xcode7. When I run my app on the simulator I get no errors. When I try to run on a real device I get this:
ld: 'Test-IOS/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)
How do I resolve this error?
Replies. Bitcode is an intermediate representation of a compiled program. Meaning you can slice/segment it out for different processors, etc. once it's in the store, reducing the payload do the user accordingly.
The issue is that Google Analytics for iOS doesn't have support for bitcode right now. Here's the issue on Google Code:
https://code.google.com/p/analytics-issues/issues/detail?id=671
The workaround currently is to disable bitcode for your project.
In your project file in the Build Settings
tab under Build Options
set the Enable Bitcode
flag to false.
Note that if you disable it completely you won't be able to build for watchOS. There seems to be a way to also only disable it for iOS but then you won't be able to use analytics on watchOS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With