错误描述:ld: bitcode bundle could not be generated because '***' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64。
解决方法:
- 在Build Settings中搜索Enable Bitcode-> 设置No
- Project-> Targets-> Build Settings-> Custom Compiler Flags-> Other C Flags-> “-fembed-bitcode”
注意:如果静态库的工程有 -Werror的选项,需要去掉。因为在编译的时候有一个警告。 clang: warning: argument unused during compilation: '-fembed-bitcode-marker’, 如果不去掉就会报错。
网友评论