Invalid Swift Support / The SwiftSupport folder is empty

前端 未结 19 1376
轻奢々
轻奢々 2020-12-08 13:01

Environment: Xcode 7 GM

I uploaded iOS app successfully using Xcode without error. This app is written in Objective-C and Swift.

However, immediately after s

相关标签:
19条回答
  • 2020-12-08 13:49

    I managed to fix this error by unchecking the option "Strip Swift symbols".

    App Store Connect distribution options

    0 讨论(0)
  • 2020-12-08 13:52

    Tried this solution with Xcode 11.6, in Aug 2020, and it works.

    1. Select the archive > Show in Finder
    2. Show Package Contents
    3. Delete the folder SwiftSupport
    4. Go back to the archive > Distribute App
    0 讨论(0)
  • 2020-12-08 13:53

    when try to export after "Xcode->Product->Archive" you should choose "save for ios app store deployment" option

    The same problem confused me a couple of days, the above setting can solve this problem.

    no matter "embedded content contains swift code" is yes or no.

    0 讨论(0)
  • 2020-12-08 13:53

    I spent almost an entire day on this issue, none of the above solutions worked. I got rid of this error by lowering my target tvOS back to 11 from 13; where it was originally. That restored the SwiftSupport folder. The question that remains to be answered is whether this is due to our Provision not allowing us to target tvOS 13 - or somehow the Apple Store folks not being aligned with the xCode folks because the app created by targeting tvOS 13 is 14mb and tvOS 11 is 44mb and different app folder structure.

    0 讨论(0)
  • 2020-12-08 13:53

    App Store build submission Issue:

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

    Solution:

    In most cases we found this issue due to submitting application via App Loader and our usual practice to make ipa as Organizer > App Archive > Show In Finder > Show Package Content > Products > Applications> OurProjectName.app in copying this app to Payload folder and zip it and making ipa file to submit on App Store using App Loader. That is work fine for submitting only objective c files contained projects.

    But there is some changes if your project contains any swift classes and usage of it. If your project contains swift classes with Objective C project, IPA content structure changed slightly different as attached screenshot.

    To fix this issue, submit app directly from Xcode [ OR ] if you want to submit application via App Loader than first Export ipa using Export option from Xcode organizer and submit those ipa file to app store via App Loader.

    See the reference screenshot as below:

    Hurrey!!! Your issue will be fixed :) :) :)

    0 讨论(0)
  • 2020-12-08 13:55

    I grappled with this for several hours and here is what worked for me.

    In the Archive, Xcode did not copy swift libs into SwiftSupport/iphoneos even though my project had "Embedded Content Contains Swift Code" set to yes for all targets. Nor did it copy swift libs into "AppName.app/Frameworks". So I had to do that manually in the Archive before submitting:

    copy "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/lib*" to "Archive_folder/Products/Applications/AppName.app/Frameworks" and "SwiftSupport/iphoneos"

    If your app also has a watch app

    copy

    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/watchos" into "Archive_folder/SwiftSupport/watchos" and "Archive_folder/Products/Applications/AppName.app/Watch/AppName WatchKit App.app/Frameworks"

    Then submit the app.

    0 讨论(0)
提交回复
热议问题