From Xcode 7 it became one of the common problem that third party frameworks should support Bitcode. We can also disable the BITCODE by setting ENABLE_BITCODE to NO in Build
The accepted answer suggests you shall do grep __LLVM
but I'd rather do this
otool -l libName.o | grep __bitcode
as there are different __LLVM
segments and not all of these indicate the presence of Bitcode. Here's an example:
Section
sectname __bitcode
segname __LLVM
addr 0x00000000000007d0
size 0x0000000000000f10
offset 3360
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __cmdline
segname __LLVM
addr 0x00000000000016e0
size 0x0000000000000069
offset 7216
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
The presence of the __cmdline
Section does not indicate that Bitcode is present, yet it would also be found when just searching for __LLVM
.