Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iTunes Connect error for archive uploaded from Xcode 6.3: contains invalid version of Swift

I built and uploaded my app to itunes connect using the release version of Xcode 6.3 last night but it was rejected as "invalid binary". The email from App Review said I was using an invalid or beta version of Swift. I would really appreciate any help or ideas about how to work around this problem.

I originally created the app in a release version of Xcode (6.1 I think) but then worked on it in the beta versions of 6.3 over the last month or so. Could this be causing the "invalid binary" rejection, even though I built and uploaded the archive in the release version of 6.3? If so, what can I do about it?

I have tried deleting derived data, revoking my certificates, and editing each of the app's source code files in the release version of 6.3 to see if that would help (it didn't).

like image 866
Sam Avatar asked Apr 09 '15 22:04

Sam


1 Answers

You are likely using an old version of swift. Inside Xcode there should be a menu option to "upgrade to latest version of swift"

This error can also occur if you are using a beta version of swift that is ahead of the app store.

If you are using a beta version of Xcode, open your project in the latest release version and try to build again. - You cannot submit apps compiled in beta to the app store.

If you are using old swift - try to figure out which menu option lets you upgrade.

Ah its this:
"click the Edit menu, then choose Convert > To Swift 1.2."

like image 97
Jeef Avatar answered Sep 30 '22 05:09

Jeef