这是我的 pod 文件
source 'https://github.com/CocoaPods/Specs.git'
# Uncomment this line to define a global platform for your project
platform :ios, ‘8.0‘
# Uncomment this line if you're using Swift
use_frameworks!
target 'LIDO' do
pod 'SWXMLHash', '~> 2.0.0'
pod 'AEXML'
#pod 'SwiftyButton'
pod 'ActionButton'
pod 'DOFavoriteButton'
#pod "VideoSplash"
pod 'LNRSimpleNotifications', '0.2.0'
pod 'EZLoadingActivity'
#pod 'SwiftOverlays', '~> 1.0'
pod 'PureLayout'
end
但是对于
pod 'SwiftyButton' pods “VideoSplash” pod 'SwiftOverlays', '~> 1.0'
我总是遇到
[!] Unable to find a specification for
<name>
知道为什么吗?
我可以找到所有这些
http://cocoapods.org/pods/SwiftyButton
http://cocoapods.org/pods/SwiftOverlays
http://cocoapods.org/pods/VIDEOSPLASH
直到昨天它还有效吗?
最佳答案
你需要执行sudo rm -fr ~/.cocoapods/repos/master
因为它会删除您计算机中的所有虚假和损坏的存储库,以便在您重做后有机会重新填充 pod setup
,这将使您恢复新的 Cocoapods 设置。此外,您需要指定 sudo xcode-select --switch /applications/Xcode.app
新版本的 Xcode 在哪里。这只是我必须完成的另一个设置过程才能完成修复。从那里开始,只需执行 pod setup
然后你就可以运行 pod install
集成您想要的所有库!
关于swift - Cocoa Pod 无法找到规范,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34461901/