How to check if a framework is Bitcode supported for Xcode7

From this Apple Developers Forum discussion, user dshirley and bwilson suggest using command line tools otool and grep to check if bitcode sections exist. $ otool -l libName.o | grep __LLVM or $ otool -l MyFramework.framework/Versions/A/MyFramework | grep __LLVM Running the above command, if the library contains bitcode you will see segname __LLVM output.

What’s the difference between `-fembed-bitcode` and BITCODE_GENERATION_MODE?

When you build the library normally, with ENABLE_BITCODE=YES, Xcode adds the build flag -fembed-bitcode-marker to any clang invocation, placing an “empty” bitcode in the final o file. So, if you look to the compile action in the build phase, it will look something like: CompileC {build_path}/StaticBitcode/StaticLogger.o StaticBitcode/StaticLogger.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd {path}/StaticBitcode export LANG=en_US.US-ASCII … Read more

iOS library to BitCode

When building static libraries you must add the following for bitcode generation: -fembed-bitcode for a dynamic library you need to additionally link with -fembed-bitcode Note: This command is only available with Xcode7+ In regards to the accepted answer of using -fembed-bitcode-marker You should be aware that a normal build with the -fembed-bitcode-marker option will produce … Read more

Google Analytics libAdIdAccess.a does not contain bitcode

Update: Good news everyone! Google Analytics now supports Bitcode with their 3.14 release. You can grab it from their download sources, however its not listed on Cocoapods yet. Google Analytics SDK Download Change Log Original: Google needs to compile their analytics SDK into a bitcode library. However, from previous experience with Google updating their libraries … Read more