xcode7项目上线的时候, Archive不过, 报错:
xxx does not contain bitcode. You must rebuild it with bitcode enabled (Xcodesetting ENABLE_BITCODE), obtain an updated library from the vendor, or disablebitcode for this target. for architecture arm64
纠结半天没搜索到, 包括设置c,c++编译方式都不行, 最终找到原因是第三方库不包含bitcode
那么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。
如果我们开启了bitcode,在提交包时,下面这个界面也会有个bitcode选项:
- 大小: 52 KB
- 大小: 68.4 KB
分享到:
相关推荐
Common libraries and data structures for C.
TMS Scripter Pro Ver from 20101221 FS and Compiled Libraries for XE2 32 Bit VCL .rar
TeeChart Pro Version 8.0x Full Source and Compiled Libraries for XE2 32Bit VCL .rar
关于使用JSONArray.fromObject()方法和引入net.sf.json包所需要的依赖包:commons-beanutils.jar,commons-httpclient.jar,commons-lang.jar,ezmorph.jar,morph-1.0.1.jar
Developers transitioning from Objective-C to Swift will find that the language's features make it a more modern and efficient tool for building iOS applications. By mastering Swift, developers can ...
Agilent IO Libraries Suite 15.5 是一款专为Windows XP设计的软件,它提供了与安捷伦(Agilent)仪器进行数据通信和控制的重要工具。这款套装包含了各种驱动程序和应用程序,使得科研人员、工程师以及技术人员能够...
Java APIs, Extensions and Libraries_With JavaFX, JDBC, jmod, jlink, Networking, and the Process API-Apress(2018).pdf I am pleased to present the second edition of the Java APIs, Extensions, and ...
Boost_Libraries-19.0.27659.1188.tar
Boost_Libraries-19.0.28979.1978.7z
Intermediate files are temporary files generated during the build process and can be useful for debugging. ##### DEPLOYMENT_LOCATION (Deployment Location) This setting determines the deployment ...
Demonstrates how to create and manage widgets for photo galleries, instant reporting on computer/printer availability, featured book titles and book reviews from library users, tracking usage data, ...
2. **配置项目设置**:在 Xcode 的 "Project" -> "Target" -> "General" 页面的 "Linked Frameworks and Libraries" 部分,点击 "+" 按钮,选择刚刚添加的 IJKMediaFramework.framework 文件,将其添加到依赖库列表...
在使用MongoDB数据库服务时,有时可能会遇到启动过程中的错误,如"error while loading shared libraries: libstdc++.so.6: cannot open shared object file"。这个错误表明系统缺少一个名为`libstdc++.so.6`的关键...
android 系统应用二次开发的导入包,生成位置 /out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar 自己命名成了 framework_intermediates_class.jar 源文件叫 class.jar
1.1.1 C++ is “Object-Oriented” . . . . . . . . . . . . . . . . 1.1.2 Why You Should Write Scientific Programs in C++ . . 1.1.3 Why You Should Not Write Scientific Programs in C++ 1.1.4 Scope of This...
9.6.2 Mismatching Object Files . . . . . . . . . 119 9.6.3 Runtime Crashes . . . . . . . . . . . 120 9.6.4 Determining the Compiler Version . . . . . 120 9.7 Solving Dynamic Linking Issues . . . . . ....
游戏常用运行库 合集 整合了许多游戏会用到的运行库,支持 Windows XP – Windows 11 系统,并且支持自动检测系统勾选推荐的运行库,方便快捷。 包含组件: Microsoft Visual C++ 2005 Redist x86 x64 ...