Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

"Invalid Swift Support - The SwiftSupport folder is missing" when publishing to App Store

SalvatoreSalvatore ITUniversity

Hello,

I'm having this error when trying to publish an iOS application:

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

We are using iOSCharts in our project.

I tried to use the ipa-packager from GitHub and also to create the "SwiftSupport" folder manually (I copied the *.dylib files from Xcode) but the best result for now is another error:

"Invalid Swift Support - The file arm64 doesn't have a signing ID. Sign the file, rebuild your app using the current public (GM) version of Xcode, and resubmit it."

What can I do to solve these errors? Thanks for any help/feedbacks

  • Xcode 10.1
  • Visual Studio for Mac 7.7.4 (build 1)
  • Xamarin.iOS 12.2.1.13

Best Answer

  • SalvatoreSalvatore ITUniversity
    Accepted Answer

    Thank you for your reply, anyway I tried those solutions before writing here and they didn't worked.

    I got it working by following these steps (using IPA Packager):

    1. Archive the app for Publishing (From Visual Studio)
    2. Launch Xcode and load Organizer (Window -> Organizer)
    3. Find your app in the Archives and "Distribute App" then "Export"
    4. Go to the location of the exported ipa and change the extension to "zip" and extract it
    5. Load terminal and execute the following (use absolute paths): sh package_ipa.sh /AppNameFolder/Payload/AppName.app /AppNameFolder/AppName.ipa
    6. Upload the new ipa with Application Loader

    Also I had to follow the additional steps suggested in the link below since I had "Symbols" directory.

    Note: I had to edit the script of the IPA Packager a bit. I included the copy of the Symbols folder (if any) and forced it to copy the full .app file instead of the .app content (this for me was necessary to resolve an error with the Application Loader)

    IPA Packager link: github.com/Flash3001/ipa-packager
    Answer with additional steps: stackoverflow.com/questions/37820300/invalid-swift-support-using-native-swift-library-in-xamarin-ios

Answers

  • SalvatoreSalvatore ITUniversity
    Accepted Answer

    Thank you for your reply, anyway I tried those solutions before writing here and they didn't worked.

    I got it working by following these steps (using IPA Packager):

    1. Archive the app for Publishing (From Visual Studio)
    2. Launch Xcode and load Organizer (Window -> Organizer)
    3. Find your app in the Archives and "Distribute App" then "Export"
    4. Go to the location of the exported ipa and change the extension to "zip" and extract it
    5. Load terminal and execute the following (use absolute paths): sh package_ipa.sh /AppNameFolder/Payload/AppName.app /AppNameFolder/AppName.ipa
    6. Upload the new ipa with Application Loader

    Also I had to follow the additional steps suggested in the link below since I had "Symbols" directory.

    Note: I had to edit the script of the IPA Packager a bit. I included the copy of the Symbols folder (if any) and forced it to copy the full .app file instead of the .app content (this for me was necessary to resolve an error with the Application Loader)

    IPA Packager link: github.com/Flash3001/ipa-packager
    Answer with additional steps: stackoverflow.com/questions/37820300/invalid-swift-support-using-native-swift-library-in-xamarin-ios

  • DanielKokDanielKok NLUniversity ✭✭

    I am having exactly this issue with VS Mac 8.4.6 and Xcode 11.3.1. Unfortunately the above solutions don't seem to work.

    I've done it manually like the stackoverflow posts suggests but then we get a signing error.

    When using the ipa-packager I cannot upload the ipa anymore because the bundle-id has been changed.

    Additional:
    The "SwiftSupport/iphoneos" folder already exists inside the IPA but we're still getting this error.

  • DanielKokDanielKok NLUniversity ✭✭

    @Salvatore said:

    Note: I had to edit the script of the IPA Packager a bit. I included the copy of the Symbols folder (if any) and forced it to copy the full .app file instead of the .app content (this for me was necessary to resolve an error with the Application Loader)

    What kind of error did you get here? We're getting an error about the wrong the bundle id.

Sign In or Register to comment.