Publishing App - Invalid Swift Support

frmifrmi DKMember
edited October 2017 in Xamarin.iOS

My user is too new, so i'm not able to post links... I've added the links in a nonclickable verison. Please copy these to another tab.

I've been struggling publishing my iOS app for review with the following error:

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

I'm using Xamarin.iOS to develop this app, and i receive the above error if i use Visual Studio to Sign and Export the IPA or if i use Xcode to publish.

Tool versions:

  • Xcode 9.0.1
  • Visual Studio Enterprise 2017 for Mac 7.2
  • Xamarin.iOS 11.2.0.11

I have tried the following suggestions:

  1. IPA Packager (also Auto Packager) (stackoverflow.com/a/37821744/2198661)
  2. Manual packaging (docs.google.com/document/d/1nWY-RK9oXsNnlca5eSvbH9tQejLnCjismHrSy8IuDFo)

The second suggestion didn't give a different response.
Using the IPA Packager gave the following response from iTunes Store:

Invalid Swift Support - The files libswiftAVFoundation.dylib, libswiftDarwin.dylib, libswiftQuartzCore.dylib, libswiftFoundation.dylib, libswiftCoreAudio.dylib, libswiftCoreGraphics.dylib, libswiftCoreLocation.dylib, libswiftCore.dylib, libswiftCoreImage.dylib, libswiftDispatch.dylib, libswiftPhotos.dylib, libswiftObjectiveC.dylib, libswiftCoreMedia.dylib, libswiftUIKit.dylib don’t match /Payload/App.iOS.app/Frameworks/libswiftAVFoundation.dylib, /Payload/App.iOS.app/Frameworks/libswiftDarwin.dylib, /Payload/App.iOS.app/Frameworks/libswiftQuartzCore.dylib, /Payload/App.iOS.app/Frameworks/libswiftFoundation.dylib, /Payload/App.iOS.app/Frameworks/libswiftCoreAudio.dylib, /Payload/App.iOS.app/Frameworks/libswiftCoreGraphics.dylib, /Payload/App.iOS.app/Frameworks/libswiftCoreLocation.dylib, /Payload/App.iOS.app/Frameworks/libswiftCore.dylib, /Payload/App.iOS.app/Frameworks/libswiftCoreImage.dylib, /Payload/App.iOS.app/Frameworks/libswiftDispatch.dylib, /Payload/App.iOS.app/Frameworks/libswiftPhotos.dylib, /Payload/App.iOS.app/Frameworks/libswiftObjectiveC.dylib, /Payload/App.iOS.app/Frameworks/libswiftCoreMedia.dylib, /Payload/App.iOS.app/Frameworks/libswiftUIKit.dylib. Make sure the files are correct, rebuild your app, and resubmit it. Don’t apply post-processing to /Payload/App.iOS.app/Frameworks/libswiftAVFoundation.dylib, /Payload/App.iOS.app/Frameworks/libswiftDarwin.dylib, /Payload/App.iOS.app/Frameworks/libswiftQuartzCore.dylib, /Payload/App.iOS.app/Frameworks/libswiftFoundation.dylib, /Payload/App.iOS.app/Frameworks/libswiftCoreAudio.dylib, /Payload/App.iOS.app/Frameworks/libswiftCoreGraphics.dylib, /Payload/App.iOS.app/Frameworks/libswiftCoreLocation.dylib, /Payload/App.iOS.app/Frameworks/libswiftCore.dylib, /Payload/App.iOS.app/Frameworks/libswiftCoreImage.dylib, /Payload/App.iOS.app/Frameworks/libswiftDispatch.dylib, /Payload/App.iOS.app/Frameworks/libswiftPhotos.dylib, /Payload/App.iOS.app/Frameworks/libswiftObjectiveC.dylib, /Payload/App.iOS.app/Frameworks/libswiftCoreMedia.dylib, /Payload/App.iOS.app/Frameworks/libswiftUIKit.dylib.

I have also tried publishing the app without stripping Swift symbols, when publishing from Xcode

i.stack.imgur.com/7V9BH.png

This gave yet another result:

This bundle is invalid - Your archive contains paths that are not allowed: ( "AppThinning.plist" )

I'm out of ideas how to solve this. It's a strange feeling being so close to publish the app, and then struggling with this in the last step of the process.

Best Answer

  • frmifrmi DK
    Accepted Answer

    I solved my own question. Solution can be found here. stackoverflow.com/questions/46998402/xamarin-ios-publishing-app-invalid-swift-support

Answers

  • frmifrmi DKMember
    edited October 2017

    I'm unable to post links so here are the links, in a non-recognized link manner.
    IPA Packager guide: stackoverflow.com/a/37821744/2198661
    Manual packaging: docs.google.com/document/d/1nWY-RK9oXsNnlca5eSvbH9tQejLnCjismHrSy8IuDFo/edit
    Swift Symbol Stripping: i.stack.imgur.com/7V9BH.png

  • frmifrmi DKMember
    Accepted Answer

    I solved my own question. Solution can be found here. stackoverflow.com/questions/46998402/xamarin-ios-publishing-app-invalid-swift-support

Sign In or Register to comment.