"xxx was built without full bitcode" 编译错误解决
2017-06-14 10:51
573 查看
"xxx was built without full bitcode" 编译错误解决
(1466) (0) 举报 收藏iOS 打包上线 All object files and libraries for bitcode must be generated from...报错:
那么bitcode 是神马:
Distribution Guide–App Thinning (iOS, watchOS)一节中,找到了下面这样一个定义:
Bitcode is an intermediate representationof a compiled program. Apps you upload to iTunes Connect that contain bitcodewill be compiled and linked on the App Store. Including bitcode will allowApple to re-optimize your app binary in the future without the need to submit anew version of your app to the store.
说的是bitcode是被编译程序的一种中间形式的代码。包含bitcode配置的程序将会在App store上被编译和链接。bitcode允许苹果在后期重新优化程序的二进制文件,而不需要重新提交一个新的版本到App store上。
而在What’s New in Xcode-New Features in Xcode 7中,还有一段如下的描述:
Bitcode. When you archive for submission tothe App Store, Xcode will compile your app into an intermediate representation.The App Store will then compile the bitcode down into the 64 or 32 bitexecutables as necessary.
当提交程序到App store上时,Xcode会将程序编译为一个中间表现形式(bitcode)。然后App store会再将这个botcode编译为可执行的64位或32位程序。
bitcode内部就是对包进行了一些优化.
错误解决
1:让第三方库支持bitcode
2:关闭bitcode
1:让第三方库支持bitcode
这种方法显然不大实用, 除非像我一样,碰到这个问题的时候, 联系某xxx第三方库, 客服和我说2个小时左右会上线一个新版本, 将修复此问题, 那么就可以等两个小时用新版本库, 否则还是去用第二种方法吧…
2:关闭bitcode
在Xcode 7中,我们新建一个iOS程序时,bitcode选项默认是设置为YES的。我们可以在”Build Settings”->”Enable Bitcode”选项中看到这个设置。不过,我们现在需要考虑的是三个平台:iOS,Mac OS,watchOS。
对于iOS,bitcode是可选的;对于watchOS,bitcode是必须的;而Mac OS是不支持bitcode
解决办法 : BuildSettings 里设置 Enable Bitcode为NO即可, 如下图:
相关文章推荐
- "xxx was built without full bitcode" 编译错误解决
- iOS archive 时出现 “ BaiduMapAPI_Map(BMKUserLocationInternal.o)' was built without full bitcode.”
- Xcode7 出现"-fembed-bitcode"错误的解决办法
- 解决内核编译时产生 "mkimage" command not found - U-Boot images will not be built 错误
- 解决Xcode 7编译错误:does not contain bitcode
- 解决Xcode编译错误:does not contain bitcode
- 编译时出现fatal error C1853: "debug/xxx.pch" is not a precomplied header file with......错误的原因及解决办法(转)
- 解决内核编译时产生 "mkimage" command not found - U-Boot images will not be built 错误
- loaded the "xxx" nib but the view outlet was not set 错误的解决办法。
- 解决Android 错误 couldn't find "xxx.so" is 32-bit instead of 64-bit
- 出现"-fembed-bitcode"错误的解决办法
- loadedthe "xxx" nib but the view outlet was not set错误的解决办法。
- Bug之解决Xcode 7编译错误:* does not contain bitcode.
- 使用Vue.js加sass时遇到 Invalid CSS after ".xxx{": expected "}", was "{" 错误的解决方法
- loaded the "xxx" nib but the view outlet was not set 错误的解决办法。
- xCode 7 编译出现错误:does not contain bitcode 解决办法
- Xcode7 出现"-fembed-bitcode"错误的解决办法
- 添加jar包编译出现错误"XXX cannot be resolved or is not a field"解决方法
- myeclipse菜鸟级别编译错误:The project was not built due to "Could not delete
- 编译linux内核时出现"mkimage" command not found - U-Boot images will not be built错误的解决办法