Compiling iOS library/framework with bitcode enabled

369 阅读1分钟

Step 1: Enable bitcode in build setting

bitcodeenable.png

Step 2: Add "-fembed-bitcode" flag to - Other C flags - Other C++ flags - Other linker flags

bitcode-flag.png

Step 3: Check if framework bitcode enable use otool and grep: - otool -l binary_name | grep __LLVM

Relate: stackoverflow.com/questions/3…