Xcode 7.0.1 - Invalid Swift Support - cocoapods HOW TO FIX?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 11:18:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!