xcode 适用于 iTunes Connect 的所有构建,导入此构建时出错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35146731/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:29:26  来源:igfitidea点击:

All Build for iTunes Connect, there was an error importing this build

iosxcodeapp-store-connect

提问by vikash1307

I upload my build to app store, after that it show error in Activity.

我将我的构建上传到应用商店,之后它在活动中显示错误。

This is the error shown

这是显示的错误

Any one help me out.

哪位大侠帮帮我。

回答by Anish Kumar

SOLVED!

解决了!

Go to Build Settings > Search for "bitcode" > Turn Enable Bitcodeto No

转到构建设置 > 搜索“ bitcode” > 将启用 Bitcode 设置

This will fix it. Also, if you are apprehensive about disabling bitcode, don't worry. Apple describes bitcode as follows:

这将修复它。另外,如果您担心禁用位代码,请不要担心。Apple 将位码描述如下:

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.

位码是已编译程序的中间表示。您上传到 iTunes Connect 的包含 bitcode 的应用程序将在 App Store 上编译和链接。包含 bitcode 将允许 Apple 将来重新优化您的应用程序二进制文件,而无需向商店提交新版本的应用程序。

You don't really need to enable it. Read more about bitcode here.

你真的不需要启用它。在此处阅读有关位码的更多信息。

That's it.

Your build should go through now.

就是这样。

您的构建现在应该通过。

回答by Oliver Pearmain

I've spent the last few days battling this issue. I've finally sussed out our specific problem and thought it worthwhile sharing. The error was the same as the original posters with iTunes Connect giving a "There was an error importing this build." error as follows:

最近几天我一直在与这个问题作斗争。我终于解决了我们的具体问题,并认为值得分享。该错误与 iTunes Connect 的原始海报相同,给出“导入此版本时出错”。错误如下:

enter image description here

在此处输入图片说明

I tried all sorts to solve this but in my travels the give away of the problem was that one of our many *.bundle files was appearing in the 'Binary and Entitlments' list during the upload/submission process:

我尝试了各种方法来解决这个问题,但在我的旅行中,问题的暴露是我们的许多 *.bundle 文件之一在上传/提交过程中出现在“二进制和权利”列表中:

enter image description here

在此处输入图片说明

Digging a little further when I inspected the contents of that particular *.bundle (with-in either the *.ipa or in the build folder of derived data) there was an unexpected unix executable file. None of other *.bundle files contained a unix executable.

当我检查该特定 *.bundle 的内容(在 *.ipa 或派生数据的构建文件夹中)的内容时,进一步挖掘有一个意外的 unix 可执行文件。其他 *.bundle 文件都不包含 unix 可执行文件。

enter image description here

在此处输入图片说明

After some trial and error I was able to prevent the executable from being created and added to the bundle by changing the "VERSION_SYSTEM" build setting to "None" (it had inadvertently been set to "Apple Generic" in some recent xcconfig changes).

经过一些试验和错误,我能够通过将“VERSION_SYSTEM”构建设置更改为“None”(在最近的一些 xcconfig 更改中无意中将其设置为“Apple Generic”)来阻止创建可执行文件并将其添加到包中。

Anyway, that solved the problem for us. Hope it helps.

无论如何,这为我们解决了问题。希望能帮助到你。

An alternative (but less desirable) solution was to remove the (empty) "Compile Sources" step from the targets "Build Phases".

另一种(但不太理想)的解决方案是从目标“构建阶段”中删除(空的)“编译源”步骤。

enter image description here

在此处输入图片说明

回答by Rodolfo Gon?alves

You need to update your version number to a higher value. If you change only the build number it won't work. I had the same issue after my app binary had been rejected.

您需要将版本号更新为更高的值。如果您只更改内部版本号,它将不起作用。在我的应用程序二进制文件被拒绝后,我遇到了同样的问题。

Example:

例子:

App 1.0.0 (1) -> rejected for some reason.

App 1.0.0 (1) -> 由于某种原因被拒绝。

App 1.0.0 (2) -> you'll get the "There was an error importing this build"

App 1.0.0 (2) -> 您将收到“导入此版本时出错”

App 1.0.0 (3) -> same error..

应用程序 1.0.0 (3) -> 同样的错误..

App 1.0.1 (1) -> will work!

应用程序 1.0.1 (1) -> 会工作!

Cheers,

干杯,