Compiling iOS library/framework with bitcode enabled

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:
http://stackoverflow.com/questions/32868297/compiling-ios-library-with-bitcode-enabled/43110602#43110602

posted @ 2017-03-31 12:19  shujucn  阅读(142)  评论(0编辑  收藏  举报