Build an iOS library with Bitcode in order to have backwards compatibility with XCode 6. How? Build an iOS library with Bitcode in order to have backwards compatibility with XCode 6. How? ios ios

Build an iOS library with Bitcode in order to have backwards compatibility with XCode 6. How?


You can try to create a fat-library using different libraries.

lipo -create -output libAndreasv.a libAndreasvBitcode.a libAndreasvARMv7.a libAndreasvARM64.a

This used to work for fat libraries (x86,x64,ARMv7,ARM64) should work for bitcode as well.


Perhaps I am missing something but I do not believe you can have duplicate architectures in a fat library, regardless of whether bitcode is enabled/disabled. For instance the following command causes an error for me:

lipo -create libcurl_iOS_bitcode.a libcurl_iOS_nobitcode.a -output libcurl_iOS_both.afatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: libcurl_iOS_bitcode.a and libcurl_iOS_nobitcode.a have the same architectures (armv7) and can't be in the same fat output file