首页 > 其他 > 详细

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

时间:2016-04-06 15:19:49      阅读:390      评论:0      收藏:0      [点我收藏+]
1 ld: /Project_now/XZDClub/ZBarSDK/ZBar/libzbar.a(config.o) 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的话,就会报错。

解决方法:

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

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

技术分享

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

原文:http://www.cnblogs.com/1394389856fei/p/5359118.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!