Invalid Swift support - missing SwiftSupport folder

I updated the current Titanium app and added a chat extension using swift.

Everything works fine if I build and test on the sim and build directly on the device. I receive a message only when I send an application to the Apple App Store (via Xcode Organizer).

The binary sends after passing verification, but I get email from iTunes Connect as follows:

Dear Developer,

We have encountered one or more problems with your recent delivery for "xxxxxxxxxxx". To process your delivery, you must resolve the following issues:

Invalid Swift support - missing SwiftSupport folder. Reinstall the application using the current publicly available (GM) version of Xcode and resubmit it.

Once these problems are fixed, you can re-add the corrected binary.

It seems that this may be related to the build setup: The inline content contains the Swift Code.

It looks like Yes must be installed for this if the Titanium project contains a built-in Swift.

At the moment, I'm stuck because I can not send the application. Is this a Ti problem or is there another step I must follow?

Xcode: 7.3, SDK: 5.2.2.GA - The project was created and created using only Ti CLI.

+5
source share
4 answers

Now this problem has been solved, a new version of the Titanium SDK, 6.0.1.GA, has appeared, in which a fix for this problem has been fixed. Now I have created, introduced and you have a Titanium application with the corresponding watch application, which is now published in the application store.

0
source

First you should check your .ipa file for

unzip yourapp.ipa 

If only Payload exists, Apple rejects your application.

You should create the SwiftSupport/iphoneos and place the appropriate fast library files.

You can find out which libraries are needed by checking Payload/yourapp.app/Framesworks . But these library files cannot be used as SwiftSupport/iphoneos .

You must copy the appropriate libraries from your mac /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos . The file names are the same as Payload/yourapp.app/Frameworks above, but the content is different.

After you get the Payload and SwiftSupport , put these directories on

 $ zip -r yournewapp.ipa Payload SwiftSupport 

(Note: delete all .DS_Store files, if they exist)

Then Apple accespt yournewapp.ipa .

+2
source

For future reference: I had to archive the Titanium project through Xcode, because one of my third-party libraries asked me to execute the script at the build stages.

I received the same message from Apple and, fortunately, fixed it by simply changing the Embedded Content Contains the Swift Code to None .

+1
source

You must select the "Save for iOS Store Deployment" option while exporting the ipa file. enter image description here

0
source

Source: https://habr.com/ru/post/1247845/


All Articles