随记(十)--'xxx' does not contain bitcode报错

1 ld: 'xxx' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
2 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Xcode默认是开启Enadle Bitcode的,如果导入了一些第三方库(比如ZBarSDK)在编译的时候没有Enable Bitcode的话,就会报错。关于Bitcode

解决方法:

 第一种:添加包括Enable Bitcode 的第三方库,或者更新第三方库使其包括Enable BitCode

 第二种:在项目中Enadble Bitcode设置为NO

posted @ 2016-04-06 14:04  Gary随风  阅读(457)  评论(0编辑  收藏  举报