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

你。 提交于 2019-12-03 02:38:54

问题


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

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.

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

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?

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.

UPDATE 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.


回答1:


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.

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




回答2:


I've found this thread:

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

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

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."

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




回答3:


I also got the same mail and, it's a bug,

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




回答4:


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.

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



来源:https://stackoverflow.com/questions/38062907/cordova-unexpected-machine-code-your-upload-contains-both-bitcode-and-native

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!