ios 错误:无效的位码版本(生产者:'800.0.35.0_0' 阅读器:'703.0.31_0')
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38875117/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
error: Invalid bitcode version (Producer: '800.0.35.0_0' Reader: '703.0.31_0')
提问by Vaisakh
When I try to Archive my application on Xcode 7.3.1, I am getting following error:
当我尝试在 Xcode 7.3.1 上存档我的应用程序时,出现以下错误:
error: Invalid bitcode version (Producer: '800.0.35.0_0' Reader: '703.0.31_0') clang: error: linker command failed with exit code 1 (use -v to see invocation)
错误:无效的位代码版本(生产者:'800.0.35.0_0' Reader:'703.0.31_0')clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
I was able to successfully Archive my app yesterday, can any one please help me?
我昨天能够成功存档我的应用程序,有人可以帮助我吗?
回答by Amr Angry
回答by Nate
Install Xcode 8: https://developer.apple.com/download/
安装 Xcode 8:https: //developer.apple.com/download/
Xcode 8 GM seed may be used to submit apps to the App Store.
Xcode 8 GM 种子可用于向 App Store 提交应用程序。
More info: In my case I updated to the latest Facebook iOS SDK 4.15.1. Since that library was updated with Xcode 8 and I was still using Xcode 7.3.1 it caused the error.
更多信息:就我而言,我更新到最新的 Facebook iOS SDK 4.15.1。由于该库已使用 Xcode 8 更新并且我仍在使用 Xcode 7.3.1,因此导致了错误。
https://developers.facebook.com/docs/ios/change-log-4.x
https://developers.facebook.com/docs/ios/change-log-4.x
Updated for Xcode 8 GM and iOS 10.
针对 Xcode 8 GM 和 iOS 10 进行了更新。
So, double check 3rd party libraries.
因此,请仔细检查第 3 方库。
Or if you don't mind disabling bitcode: Go to build settings search bitcode and change "Enable Bitcode" to "No".
或者,如果您不介意禁用位码:转到构建设置搜索位码并将“启用位码”更改为“否”。
回答by asifmohd
I also faced the same problem, and as suggested by @Nate, the issue was because of a third party SDK integrated in our project using Cocoapods.
我也遇到了同样的问题,正如@Nate 所建议的,问题是由于我们的项目中使用 Cocoapods 集成了第三方 SDK。
To help me figure out which one of the 15 pods i had in the project was responsible, i did the following:
为了帮助我找出我在项目中拥有的 15 个 pod 中的哪一个负责,我执行了以下操作:
- Create a new xcode project
- Copy the Podfile from your original project to the newly created project's directory
- Do pod install
- Remove one or more of the pods?
- Archive the new project, and see if it succeeds, if not repeat step 4 till you are able to archive
- 创建一个新的 xcode 项目
- 将原始项目中的 Podfile 复制到新创建的项目目录中
- 做 pod 安装
- 移除一个或多个 Pod?
- 归档新项目,看看是否成功,如果不成功重复步骤4,直到你能够归档
?(you can also try something like binary search, wherein you delete the first half pods in your Podfile and see if the new project archives)
?(您也可以尝试使用二分搜索之类的方法,删除 Podfile 中的前半部分 Pod,然后查看新项目是否存档)
Once you've figured out the library causing the issue, keep downgrading the library by explicitly specifying the version in Podfile, until the project archives successfully. And then you can use that version of the library to archive and upload to the app store.
一旦找出导致问题的库,请通过在 Podfile 中明确指定版本来继续降级库,直到项目成功归档。然后您可以使用该版本的库来存档并上传到应用商店。
回答by nahlamortada
If you are using lib or pod that mean that one of them built by a higher version of your current Xcode, you can either update your code or return back to the previous version where the pods were built by your current version. If you ran pod update check the pods updated if you ran pod install check the dates of the pods comparing to the release date of your Xcode that will will lead you to the responsible pod.
如果您使用的是 lib 或 pod,这意味着其中一个是由当前 Xcode 的更高版本构建的,则您可以更新代码或返回到由当前版本构建 pod 的先前版本。如果您运行 pod update 检查更新的 pods 如果您运行 pod install 检查 pods 的日期与您的 Xcode 的发布日期相比,这将引导您找到负责的 pod。
I got it while I was building using Xcode 8.2.1 and the pod built by Xcode 8.3.1
我在使用 Xcode 8.2.1 和 Xcode 8.3.1 构建的 pod 构建时得到了它
回答by Ravi Raja Jangid
I also faced this error: Invalid bitcode version (Producer: '800.0.24.1_0' Reader: '703.0.31_0')I have googling so many but unable to find the proper solution. I tried Myself and solved this probable
In my case this error occurs after adding FBSDK by drag and drop that we all usually do.
You can resolve this problem by following these steps:
我也遇到了这个错误:Invalid bitcode version (Producer: '800.0.24.1_0' Reader: '703.0.31_0')我用谷歌搜索了很多,但找不到合适的解决方案。我尝试了自己并解决了这个可能的问题在我的情况下,通过我们通常所做的拖放添加 FBSDK 后会发生此错误。
您可以按照以下步骤解决此问题:
- Delete all pod scriptin build Phases.
- Delete the dragged FBSdks file from the project.
- Exit xcode and delete 3 things "Pod folder","Podfile.lock" and "Projectworkspace"
- Search and add FBSDK podlink in podfile
- Install the pod again by using terminal.... now open Xcode archive your project build.
- 删除构建阶段中的所有pod 脚本。
- 从项目中删除拖动的 FBSdks 文件。
- 退出 xcode 并删除 3 个东西“Pod 文件夹”、“Podfile.lock”和“Projectworkspace”
- 在 podfile 中搜索并添加FBSDK pod链接
- 使用终端再次安装 pod.... 现在打开 Xcode 归档您的项目构建。
回答by DeyaEldeen
good solutions, but disabling bitcode worked for some people.
好的解决方案,但禁用位码对某些人有用。
edit :- it worked for me too.but in future your app might be in problem or (build not optimised by Appstore) if your project is **Bitcode Disable **.
编辑:-它也对我有用。但是将来如果您的项目是 **Bitcode Disable **,您的应用程序可能会出现问题或(构建未由 Appstore 优化)。
Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the App Store. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to submit a new version of your app to the store.
Note: For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required
位码是已编译程序的中间表示。您上传到 iTunes Connect 的包含 bitcode 的应用程序将在 App Store 上编译和链接。包含 bitcode 将允许 Apple 将来重新优化您的应用程序二进制文件,而无需向商店提交新版本的应用程序。
注意:对于 iOS 应用程序,bitcode 是默认值,但可选。如果您提供 bitcode,则应用程序包中的所有应用程序和框架都需要包含 bitcode。对于 watchOS 应用程序,需要位码
So thats why try to figure out error solutions right way.
所以这就是为什么要尝试以正确的方式找出错误解决方案。