You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE)
?這有一篇不錯的文章關于 bitcode 的文章? iOS中Bitcode的介紹及配置(http://www.jianshu.com/p/3e1b4e2d06c6)
還有一篇文章可以解決類似錯誤,但是有待我自己驗證(http://www.jianshu.com/p/fe4b3a981618)
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,請看這里:?http://blog.csdn.net/soindy/article/details/48518717
解決方法:
轉載于:https://www.cnblogs.com/shiguangji728/p/4969208.html
總結
以上是生活随笔為你收集整理的You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 服务器架设篇-----CentOS架设W
- 下一篇: Android调用手机中的应用市场,去评