常用错误搜集

1、使用自己生成的framework打包ipa报错:

参考链接

https://www.jianshu.com/p/570f5db2b002

http://www.cocoachina.com/bbs/read.php?tid=744514

那么问题来了,如果一个工程里面有静态库的引用,那么所有的静态库也需要打开Bitcode后重新编译。

这一切都没有问题,但是在“Archive”的时候就会报错。

这时,就需要给静态库的工程增加一个选项“-fembed-bitcode”。之后就可以正常Archive了。

报错内容

ld: bitcode bundle could not be generated because '/Users/liuyuning/Desktop/TestDecode/Decode/libDecode.a(Decode.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

你可能感兴趣的:(常用错误搜集)