Cocoapods - 'pod --version'在更新到0.32.1后给我0.31.1 [英] Cocoapods - 'pod --version' gives me 0.31.1 after updating to 0.32.1

查看:86
本文介绍了Cocoapods - 'pod --version'在更新到0.32.1后给我0.31.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的这个帖子基本上有同样的问题:当运行pod安装时,我得到`master` repo需要CocoaPods 0.32.1,尝试更新,但仍然在0.31 ,但答案并没有帮助我(我)

I have basically the same question as this post: when running pod install I get The `master` repo requires CocoaPods 0.32.1, try updating but still in 0.31 but the answer doesn't help me (I'm not allowed to comment on things yet haha!)

我尝试运行'pod install'或'pod setup',并且收到错误消息:

I try to run 'pod install' or 'pod setup' and I get an error saying:

[!] The `master` repo requires CocoaPods 0.32.1 - 
Update CocoaPods, or checkout the appropriate tag in the repo.
/Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:281:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
    from /Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:274:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.31.1/lib/cocoapods/command.rb:51:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.31.1/bin/pod:33:in `<top (required)>'
    from /usr/bin/pod:23:in `load'
    from /usr/bin/pod:23:in `<main>'

然后运行'sudo gem install cocoapods' :
$ b

Then I run 'sudo gem install cocoapods' and I get:

CHANGELOG:

## 0.32.1

##### Bug Fixes

* Fixed the Podfile `default_subspec` attribute in nested subspecs.  
  [Fabio Pelosin][irrationalfab]
  [#2050](https://github.com/CocoaPods/CocoaPods/issues/2050)


Successfully installed cocoapods-0.32.1
Parsing documentation for cocoapods-0.32.1
Done installing documentation for cocoapods after 1 seconds
1 gem installed

即使在此之后,我运行'pod --version',仍然得到0.31.1。是否有另一个步骤,我需要采取成功更新到0.32.1?

Even after this, I run 'pod --version' and I still get 0.31.1. Is there another step I need to take to successfully update to 0.32.1?

推荐答案

更新:HAD TO RESTART TERMINAL后 sudo gem uninstall cocoapods

Update: HAD TO RESTART TERMINAL after sudo gem uninstall cocoapods

然后 sudo gem install cocoapods updates to最新版本成功。

Then sudo gem install cocoapods updates to the latest version successfully.

这篇关于Cocoapods - 'pod --version'在更新到0.32.1后给我0.31.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆