use*_*330 0 git objective-c cocoapods
我从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>'
Run Code Online (Sandbox Code Playgroud)
我尝试sudo gem update将此更新cocoapods改为0.29.然后我运行pod更新并获取:
Unable to find a specification for `cdebug`.
Run Code Online (Sandbox Code Playgroud)
如果CocoaPods已存在,刚刚运行Install命令会更新:
sudo gem install cocoapods
Run Code Online (Sandbox Code Playgroud)
无需卸载.
考虑到Alexander Kostiev的评论,如果您想要或需要卸载旧版本,可以使用此命令找出您拥有的版本:
gem list --local | grep cocoapods
Run Code Online (Sandbox Code Playgroud)
输出将是这样的:
cocoapods (0.32.1, 0.31.1)
cocoapods-core (0.32.1, 0.31.1)
cocoapods-downloader (0.5.0, 0.4.1)
Run Code Online (Sandbox Code Playgroud)
并使用此命令删除特定的一个:
gem uninstall cocoapods -v 0.31.1
gem uninstall cocoapods-core -v 0.31.1
gem uninstall cocoapods-downloader -v 0.4.1
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
748 次 |
| 最近记录: |