xcode Cordova:意外的机器代码 - 您的上传同时包含位代码和本机机器代码

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

Cordova: Unexpected Machine Code - Your upload contains both bitcode and native machine code

xcodecordovacordova-plugins

提问by Dmitry Sokurenko

I'm building an iOS Cordova app. And when I upload it to the iTunes Connect it returns the following error.

我正在构建一个 iOS Cordova 应用程序。当我将它上传到 iTunes Connect 时,它返回以下错误。

Unexpected Machine Code - Your upload contains both bitcode and native machine code. When you provide bitcode, it's not necessary to include machine code as well. To reduce the size of your upload, use Xcode 7.3 or later, or any other toolchain that removes machine code.

意外的机器代码 - 您的上传同时包含位代码和本机机器代码。当您提供位码时,也没有必要包含机器码。要减小上传的大小,请使用 Xcode 7.3 或更高版本,或任何其他删除机器代码的工具链。

I've changed quite a lot of settings in config.xmltoday so I'm not sure whether I've did something wrong and is it some kind of a new iTunes Connect thing.

config.xml今天更改了很多设置,所以我不确定我是否做错了什么,它是否是某种新的 iTunes Connect 东西。

As I understand it's quite easy to fix it changing some settings in Xcode, but I would like to avoid touching Xcode —?is there any way to fix it using the config.xml?

据我所知,通过更改 Xcode 中的某些设置来修复它很容易,但我想避免接触 Xcode —?有什么方法可以使用config.xml?

Thank you

谢谢

UPDATE

更新

Well, it seems to be an Apple issue —?I was able to submit a build with such a warning to the TestFlight, actually test it through the TestFlight and submit it to the AppStore. It hasn't passed the Apple review yet, but I believe it will be ok, as typically, in the case of any real problems with the binary the build is rejected immediately.

好吧,这似乎是 Apple 的问题——?我能够向 TestFlight 提交带有此类警告的构建,实际上通过 TestFlight 对其进行测试并将其提交给 AppStore。它还没有通过 Apple 的,但我相信它会没问题,通常情况下,如果二进制文件出现任何实际问题,构建会立即被拒绝。

UPDATE 2

更新 2

The app with such a warning (actually 3 apps) has actually passed the AppStore review and went on sale. So I believe the issue can be safely ignored.

有这样警告的应用(实际上是3个应用)实际上已经通过了AppStore审核并开始销售。所以我相信这个问题可以安全地忽略。

采纳答案by Dmitry Sokurenko

Posting an answer myself, as it seems to be quite a popular question with nobody answering — so the issue is on the Apple side. Some people contacted Apple support and confirmed this. There is no need to recompile anything. The binary with such a warning can be submitted to the AppStore —?it will pass the review successfully. I've already did it with a few apps.

自己发布一个答案,因为这似乎是一个很受欢迎的问题,没有人回答——所以问题出在 Apple 一方。一些人联系了 Apple 支持并确认了这一点。不需要重新编译任何东西。有这样警告的binary可以提交到AppStore——审核成功。我已经用一些应用程序做到了。

Check more details here: "Unexpected Machine Code" warning from iTunes Connect

在此处查看更多详细信息:来自 iTunes Connect 的“意外机器代码”警告

回答by Aviram Netanel

I've found this thread:

我找到了这个线程:

https://forums.developer.apple.com/thread/50328

https://forums.developer.apple.com/thread/50328

suggesting to set Enable Bitcodeto NObut in my case it already was on NO and still got this message... :-\

建议将Enable Bitcode设置为NO但在我的情况下它已经处于 NO 状态并且仍然收到此消息...:-\

however, another guy said:

然而,另一个人说:

"It's happening to me as well. On stack overflow someone's says they called iTC and it's a problem on their side."

“这也发生在我身上。在堆栈溢出时,有人说他们打电话给 iTC,这是他们这边的问题。”

so I hope it has no effect, and it'll gone as it appeared...

所以我希望它没有影响,它会像它出现的那样消失......

回答by Alupotha

I also got the same mail and, it's a bug, enter image description here

我也收到了同样的邮件,这是一个错误, 在此处输入图片说明

Check this answer https://stackoverflow.com/a/38061592/3626659

检查这个答案https://stackoverflow.com/a/38061592/3626659

回答by Helen Wood

I talked with the Apple Developer Support, the official one. They don't said it clearly, but yes it's a bug. So, it's confirmed that there's some malfunctioning in their side.

我与官方的 Apple Developer Support 进行了交谈。他们没有说清楚,但这是一个错误。因此,可以确认他们这边出现了一些故障。

UPDATE: It won't affect the Apps in Production neither Testing!

更新:它不会影响生产中的应用程序,也不会影响测试!