问题
Unfortunately upgraded xcode and now trapped in hell.
Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.
I'm guessing cocoapods is the culprit as I've successfully uploaded another app to testflight that does not use cocoapods.
How is this fixed?
- I have Embedded Content Contains Swift Code set to Yes
- I've tried a proposed solution of commenting out a few lines in Pods-frameworks.sh suggested here Invalid Swift Support / invalid implementation of swift
that did not work
My Podfile contents:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Alamofire', '~> 2.0'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
回答1:
Alright, so on the Apple Developer Forums, I found this post. Basically, some people found that adding these few things to their .plist files fixed the issue:
<key>ApplicationProperties</key>
<dict>
<key>ApplicationPath</key>
<string>Applications/<<APP_NAME>>.app</string>
<key>CFBundleIdentifier</key>
<string><<BUNDLE_IDENTIFIER>></string>
<key>CFBundleShortVersionString</key>
<string><<YOUR_MARKETING_NUMBER>></string>
<key>CFBundleVersion</key>
<string><<YOUR_BUILD_NUMBER>></string>
<key>SigningIdentity</key>
<string>iPhone Distribution: <<CERTIFICATE_NAME>> (<<CERTIFICATE_ID>>)</string>
</dict>
If you have an old, working archive, you can copy the values from there and simply change the marketing version and the build number.
Then, restarting Xcode.
If this doesn't help, there is more information on this Developer Form post.
来源:https://stackoverflow.com/questions/33047922/xcode-7-0-1-invalid-swift-support-cocoapods-how-to-fix