Invalid Swift Support - Files Are Not in the Right Place

I am trying to upload a new assembly to iTunes Connect to update the application. At first I used xCode 6, but I received an email from Apple saying the following:

Dear Developer,

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

Invalid Swift support - files libswift Darwin.dylib, libswiftDispatch.dylib, libswiftCoreGraphics.dylib, libswiftUIKit.dylib, libswiftContacts.dylib, libswiftCore.dylib, libswiftCoreAudio.dylibift, libswibibibibibibibib libibibswibib lib expected location /Payload/App.app/Frameworks.

Move the file to the expected location, rebuild your application using the current public (GM) version of Xcode, and resubmit it.

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

I thought this was a simple fix, so I just upgraded to the latest GM (Xcode 7.2) and completed the Swift 2 migration, however I got the same email address. Can someone explain how to solve this problem and which files? This is not a β€œfiles do not match” problem, as can be seen from other questions.

+5
source share
3 answers

I stumbled upon this as I ran into the same problem. This is the first time I have been instructed to handle the release of the Swift app on the App Store.

I found this TALAA answer works: fooobar.com/questions/16240 / ...

In the build settings there is a parameter "Embedded content with hidden code", which must be installed in YES. After that, clean the project before building it.

After cleaning, you will have to recreate the assembly for download on the App Store. You may find that a new download will be rejected, claiming that a binary already exists for this number. If you update the build number (must be greater than the previous one), then the new download will be accepted.

+1
source

According to @ Thomas, you need to enable this flag, and after that for "Invalid Swift Support" I had problems with Application Loader with Xcode 6.4. So, I started downloading the application from "Organizer" ( Xcode> Window> Organizer> Upload to App Store ).

This solves the problem.

0
source

Check the payload as well as the SwiftSupport folder in the .ipa file (converting it to .zip) and make sure the libraries in the letter match in both of these directories. Those should match, apparently.

You probably shouldn't have libswiftXCTest.dylib in the Payload / App.app / Frameworks or SwiftSupport folders that you submit to Apple. If you do, check the circuit assembly section for your application target and make sure that you have not included any test targets in your Archive step.

0
source

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


All Articles