我无法找到podfile中列出的任何pod的podSpec。我的Podfile看起来像这样:
use_frameworks!
target 'MyTargetName' do
pod 'Gloss'
pod 'IQKeyboardManagerSwift'
pod 'ICViewPager'
pod 'SkyFloatingLabelTextField'
pod "KCFloatingActionButton"
pod "TSMessages"
end
最初我收到一个错误:
[!] Unable to find a specification for `IQKeyboardManagerSwift`
我已经尝试删除IQKeyboardManagerSwift,但后来又出现了另一个错误:
[!] Unable to find a specification for `ICViewPager`
我检查了这两个项目,它们存在于cocoapods.org上,而podspec存在于github以及pod repo上。当我更新到Xcode 8.0和Swift 3.0时,一切都开始了。知道这里出了什么问题吗?
编辑:
我设法找到一个解决方法修复了与下载cocoapods相关的问题:
use_frameworks!
target 'MyTargetName' do
pod 'Gloss'
pod 'IQKeyboardManagerSwift', :git => 'https://github.com/hackiftekhar/IQKeyboardManager'
pod 'ICViewPager', :git => 'https://github.com/iltercengiz/ICViewPager'
pod 'SkyFloatingLabelTextField’, :git => 'https://github.com/Skyscanner/SkyFloatingLabelTextField'
pod "KCFloatingActionButton”, :git => 'https://github.com/kciter/KCFloatingActionButton'
pod "TSMessages”, :git => 'https://github.com/KrauseFx/TSMessages'
end
你有Podfile
顶部的来源吗?
source 'https://github.com/CocoaPods/Specs.git'
做这些:
$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ rm -fr ~/.cocoapods/repos/master/
$ sudo rm -fr Pods/
$ sudo gem install cocoapods
$ pod setup
然后运行$ pod install
..希望它的工作原理