Labs Panda
Labs Panda

Reputation: 71

Invalid architectures Xcode 10

I upgraded Xcode 10 and submitted my app. I got a email that I have not changed the architectures Setting. The Valid architectures is armv7 and arm64.

App Store Connect

Dear Developer,

We identified one or more issues with a recent delivery for your app, "#####!". Please correct the following issues, then upload again.

Invalid architectures - This app has invalid architecture, and may have been built with invalid build settings or incompatible tools. Try rebuilding the app with the latest Xcode version. If you are using third party development tools, contact the provider.

Best regards,

The App Store Team

Upvotes: 6

Views: 5356

Answers (2)

dravensx
dravensx

Reputation: 11

Check out the section Deprecation Notices Deprecations in this link

https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes!
With xcode 10: recommend to set a deployment target of macOS 10.9 or later, or iOS 7 or later.

Just modify Deployment Target to 7.0 will fix this issue. (Tested And Passed)

And ... there has more info.
before got "Invalid architectures" from Apple. when i update xcode to 10. i got a compile error with

libstdc++.6 not found.
(My Deployment target is 6.0)

For fixed this. i have download the old(xcode 9) libstdc++ files from a github rep. The Apple release note can also explain this error.

So if you build for ios 6.0, recommend to use xcode 9.
otherwise
Use xcode 10 and Deployment target 7.0 or later.

Upvotes: 0

picciano
picciano

Reputation: 22701

Xcode 10 doesn't support deployment targets lower than 8.0. You will either need to update the deployment target, or alternatively, if you need a lower target you can reinstall Xcode 9.4.1.

Upvotes: 5

Related Questions