我从github中获取信息并运行pod update并获得以下错误:
Setting up CocoaPods master repo
Already up-to-date.
[!] The `master` repo requires CocoaPods 0.29.0 -
Update CocoaPods, or checkout the appropriate tag in the repo.
/Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:217:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:210:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.28.0/lib/cocoapods/command.rb:52:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.28.0/bin/pod:24:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'编辑
我尝试sudo gem update这个更新cocoapods到0.29。然后我运行pod更新并得到:
Unable to find a specification for `cdebug`.发布于 2014-03-09 13:19:35
我也有过类似的问题。请尝试卸载CocoaPods并再次安装它们。这对我有帮助,我也希望它能帮到你!
发布于 2014-04-19 18:11:15
如果CocoaPods已经存在,只运行安装命令就会进行更新:
sudo gem install cocoapods不需要卸载。
考虑到Alexander 注释,如果您想卸载或需要卸载旧版本,您可以找到使用此命令的版本:
gem list --local | grep cocoapods输出如下所示:
cocoapods (0.32.1, 0.31.1)
cocoapods-core (0.32.1, 0.31.1)
cocoapods-downloader (0.5.0, 0.4.1)并使用以下命令删除特定的命令:
gem uninstall cocoapods -v 0.31.1
gem uninstall cocoapods-core -v 0.31.1
gem uninstall cocoapods-downloader -v 0.4.1https://stackoverflow.com/questions/22280134
复制相似问题