无法找到`podName`的规范

问题描述 投票:0回答:2

我无法找到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
ios swift3 xcode8 cocoapods-1.0.1
2个回答
0
投票

你有Podfile顶部的来源吗?

source 'https://github.com/CocoaPods/Specs.git'

-1
投票

做这些:

$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ rm -fr ~/.cocoapods/repos/master/
$ sudo rm -fr Pods/
$ sudo gem install cocoapods
$ pod setup

然后运行$ pod install ..希望它的工作原理

© www.soinside.com 2019 - 2024. All rights reserved.