swift - Cocoa Pod 无法找到规范

标签 swift cocoa cocoapods

这是我的 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/

相关文章:

ios - 如何在iPad中全屏显示UIVideoEditorViewController

objective-c - 获取 NSOutlineView 中的行数

ios - 无法构建 Objective-C 模块/没有这样的模块

ios - Swift - 将数据从父 View Controller 传递到 subview Controller

ios - ScrollView contentView 大小没有相应改变

macos - 注册网络历史记录通知处理程序时引发意外异常,出了什么问题?

php - 从 PHP 到 Objective-C

ios - 使用 Cocoapods 复制符号 iOS

ios - 安装 pod 时,错误 "Invalid ` Podfile` 文件 : undefined method `plateform'

swift - CALayer 绕中心旋转