Xcode 7.0.1-无效的Swift支持-cocoapods如何修复? [英] Xcode 7.0.1 - Invalid Swift Support - cocoapods HOW TO FIX?
问题描述
不幸的是,xcode升级后陷入了地狱。
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.
我猜想cocoapods是罪魁祸首,因为我已经成功地将另一个应用程序上传到testflight
I'm guessing cocoapods is the culprit as I've successfully uploaded another app to testflight that does not use cocoapods.
此问题如何解决?
- 我已将包含Swift Code的嵌入式内容设置为是
- 我已经尝试了建议的解决方案在Pods-frameworks.sh中注释掉几行的建议在这里无效的Swift支持/无效的Swift实施
- 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
无效
我的Podfile内容:
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'
推荐答案
好的,因此在Apple开发者论坛上,我发现了此帖子。基本上,有些人发现将这些东西添加到他们的.plist文件中可以解决此问题:
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.
然后,重新启动Xcode。
Then, restarting Xcode.
如果这没有帮助,请参见此 开发人员表格发布。
If this doesn't help, there is more information on this Developer Form post.
这篇关于Xcode 7.0.1-无效的Swift支持-cocoapods如何修复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!