Invalid Swift Support / The SwiftSupport folder is empty

前端 未结 19 1377
轻奢々
轻奢々 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 14:05

    Five Step Solution:

    1. Go to build settings and make flag Embedded Content Contains Swift Code -> YES, if your code contains partial swift code or entirely made in Swift
    2. Archive your build using Xcode->Product->Archive
    3. Export the Archive Build you will suddenly see the difference build size will be 40+ MBs this is because XCode has added SwiftSupport folder which was missing
    4. Now upload this build using Application loader
    5. If this does not work check that if you have multiple XCode on your system goto Xcode->Preferences->Location->Command Lines Tools has the same latest or the same Xcode from drop down selected on which you have done the coding & vola it's done.

    This is slightly a drawback as swift carries the baggage and has to be compatible with earlier version and Objective C code.

    My many hours were wasted hope you will find this helpful ;)

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