【发布时间】:2014-06-04 07:44:58
【问题描述】:
我的问题与这篇文章基本相同:when running pod install I get The `master` repo requires CocoaPods 0.32.1, try updating but still in 0.31 但答案对我没有帮助(我还不能评论事情哈哈!)
我尝试运行 'pod install' 或 'pod setup' 并收到一条错误消息:
[!] 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”,我得到:
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?
【问题讨论】: