Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid Swift Support / The SwiftSupport folder is empty

Environment: Xcode 7 GM

I uploaded iOS app successfully using Xcode without error. This app is written in Objective-C and Swift.

However, immediately after successful upload, I got this email from Apple stating this error:

Invalid Swift Support - We have discovered one or more issues with your recent delivery for XXXXX(my app name). To process your delivery, the following issues must be corrected:

Invalid Swift Support - The SwiftSupport folder is empty. 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.

Anybody has a solution against this issue?

I have already confirmed below issues.

"SwiftSupport/iphoneos/" libraries in archives(.xcarchive file) is equaly to "Products/Applications/myApp.ipa/Frameworks/"

My "Valid Architectures" setting is "$(ARCHS_STANDARD)" displaying "armv7k".

Provisioning profile is set to Dev and Release which has been created in iTunes connect, respectively.

And, in my "Edit scheme", Test target is unchecked at Archive.

like image 814
Tsuyoshi Endo Avatar asked Sep 14 '15 07:09

Tsuyoshi Endo


2 Answers

important note: this only works for projects that do not use swift, see comment below

I just met the same issue and resolved it by making the following change - If you used to have Swift files in your project but then removed them, you only need to set "Embedded Content Contains Swift Code" to NO in Build Options.

like image 57
Lixu Avatar answered Sep 22 '22 18:09

Lixu


when try to export after "Xcode->Product->Archive" you should choose "save for ios app store deployment" option

The same problem confused me a couple of days, the above setting can solve this problem.

no matter "embedded content contains swift code" is yes or no.

like image 34
jdhuang Avatar answered Sep 19 '22 18:09

jdhuang