I have recently added some Swift files to my Objective C project that I had been successfully publishing to the AppStore. I'm able to debug on my devices and simulators but when submitting to AppStoreConnect I get the following email:
Dear Developer, We identified one or more issues with a recent delivery for your app, "......" . Please correct the following issues, then upload again. ITMS-90426: Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it. Best regards, The App Store Team
From the internet I gather the following build settings are required for the project but that doesn't seem to help my case:
1. Defines Module -> YES
2. Always embed Swift Standard libraries -> YES
To reproduce the problem, do the following:
- Create new Objective C project in XCode
- Add a single Swift file and choose YES when prompted to make the bridging header
- Set
Defines ModuleandAlways embed Swift Standard librariestoYESin build settings - Product > Archive
- Find the archive in Window > Organizer and click distribute app
- Choose "App store connect" for distribution and "export" as destination, and click through the rest to save the ipa on disk
- Navigate to saved ipa in finder, right click and rename .ipa to .zip, expand the zip file and look at the contents.
There is no "SwiftSupport" folder in there. Only "Payloads" and "Symbols"
I'm using XCode 14.0.1 and targeting iOS 16