Chris G. Chris G. - 9 days ago 7
iOS Question

iTunes connect: This action could not be completed. Try again. (-22421)

Note:
I am working on a Swift project with obj-c code.

I am getting this error when uploading to iTunes Connect:


This action could not be completed. Try again. (-22421)


Ok, then I found this

And then I get this in an email(this took a while to realise that error message is send via email :-) well just another day in the land of Xcode and iOS development):


Dear developer,

We have discovered one or more issues with your recent delivery for
"my-app-name". To process your delivery, the following issues must be
corrected:

Invalid Swift Support - The SwiftSupport folder is missing. Rebuild
your app using the current public (GM) version of Xcode and resubmit
it.

Once these issues have been corrected, you can then redeliver the
corrected binary.

Regards,

The App Store team


Ok, then I set the "Embedded Content Contains Swift Code" to YES.

Now after a day of wrestling with this, I am ?????

Answer

For the below message:

Dear developer,

We have discovered one or more issues with your recent delivery for "my-app-name". To process your delivery, the following issues must be corrected:

Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.

Once these issues have been corrected, you can then redeliver the corrected binary.

Regards,

The App Store team

You need to upload your app using Xcode Archive.

Navigate to Xcode > Window > Organizer > Select your latest app archive > upload to App Store.

It's because when you upload app using apploader it doesn't contains Swift Support, but when you upload using archive it copy all the swift libraries into payload.

And make sure that you don't upload your build using any Xcode beta version.

Comments