does not contain bitcode. You must rebuild it
2015-11-11 12:05
393 查看
Xcode 7 运行项目报错:
错误1. Undefined symbols for architecture armv7:
"_compress2", referenced from:
+[UMANDeflated deflatedDataPrefixedWith:level:source:] in libMobClickLibrary.a(UMDeflated.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
错误2. *** 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 armv7
由于Xcode自身的一些小问题,运行项目时一直报错 错误1的内容.然后我就检查项目友盟这个库的依赖呀.非常肯定的确认库已经导入而且在链接的二进制库里面.(就是build phases里面).然后就不断的重新导入clean了好多次还是不行.然后我就崩溃了.. 后来把Xcode重启再次运行真正的错误终于浮出水面(毕竟Xcode是beta版).就是错误2的内容.原来是友盟的二进制库不支持bitcode.而Xcode默认是要支持bitcode的,而且如果支持的话,其中所有的二进制库和framework都必须包含bitcode.至于什么是bitcode,请看这里: /article/9715335.html
Bitcode
现在我们把bitcode关掉:
![](http://static.oschina.net/uploads/img/201509/22163400_QFk2.jpg)
错误1. Undefined symbols for architecture armv7:
"_compress2", referenced from:
+[UMANDeflated deflatedDataPrefixedWith:level:source:] in libMobClickLibrary.a(UMDeflated.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
错误2. *** 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 armv7
由于Xcode自身的一些小问题,运行项目时一直报错 错误1的内容.然后我就检查项目友盟这个库的依赖呀.非常肯定的确认库已经导入而且在链接的二进制库里面.(就是build phases里面).然后就不断的重新导入clean了好多次还是不行.然后我就崩溃了.. 后来把Xcode重启再次运行真正的错误终于浮出水面(毕竟Xcode是beta版).就是错误2的内容.原来是友盟的二进制库不支持bitcode.而Xcode默认是要支持bitcode的,而且如果支持的话,其中所有的二进制库和framework都必须包含bitcode.至于什么是bitcode,请看这里: /article/9715335.html
Bitcode
现在我们把bitcode关掉:
![](http://static.oschina.net/uploads/img/201509/22163400_QFk2.jpg)
相关文章推荐
- Android高级UI之自定义开关按钮
- ZeroMQ之模式 请求回应模型(Request-Reply)
- 【APUE】Chapter4 File and Directories
- 让编程更轻松的 7 个 Visual Studio 扩展 : 以下几个扩展,BuildVision可以用
- 黑马程序员——GUI
- play2+guice+mybatis+ehcache+mysql范例(java版)
- 关于SVN报错,svn : RA layer request failed,不能正常使用SVN
- String StringBuffer StringBuilter
- Android开发UI之添加Action按钮
- Range Sum Query - Immutable
- UEFI GPT
- EasyUI 出现的问题
- Quicksum
- Anti-aliasing and Continuity with Trapezoidal Shadow Maps
- no macthing function to call for QSqlQuery::bindValue()
- Common Techniques to Improve Shadow Depth Maps
- arduino开发板在MAC OS X El Capitan中找不到串口的问题解决(CH340 CH341 serial )
- Android开发UI之建立ActionBar
- [LintCode] Distinct Subsequences
- 2、Xcode7的UIAlertController使用