Dmitry Sokurenko
Dmitry Sokurenko

Reputation: 6132

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

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.

Upvotes: 35

Views: 6699

Answers (4)

Helen Wood
Helen Wood

Reputation: 1882

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!

Upvotes: 0

Alupotha
Alupotha

Reputation: 10113

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

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

Upvotes: 2

Dmitry Sokurenko
Dmitry Sokurenko

Reputation: 6132

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

Upvotes: 7

Aviram Netanel
Aviram Netanel

Reputation: 13675

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

Upvotes: 3

Related Questions