0
我无法找到Pod Pod中列出的任何Pod的podSpec。我Podfile看起来是这样的:无法找到`podName`的规范
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时,一切都开始了。任何想法在这里出了什么问题?
编辑:
我设法TI发现,固定与下载有关的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
升级Xcode和Swift之前并不需要......为什么现在呢?在整个过程中,Cocoapods始终保持相同的版本(最新版本)。 – Aleksandar
添加它修复了您的问题吗?如果是这样,我不知道为什么它会起作用,但现在突然停止工作没有它。 – Hodson
我用我找到的解决方法更新了我的答案。目前它的工作,但我不这样做是正确的方式来做到这一点。 – Aleksandar