当运行pod安装我得到`master` repo需要CocoaPods 0.32.1,尝试更新但仍然在0.31 [英] when running pod install I get The `master` repo requires CocoaPods 0.32.1, try updating but still in 0.31

查看:123
本文介绍了当运行pod安装我得到`master` repo需要CocoaPods 0.32.1,尝试更新但仍然在0.31的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Iam尝试在xcode项目中安装cocoa pod,但是在执行时:

Iam trying to install cocoa pods in a xcode project, but when doing:

$ pod install

我收到以下错误:

Setting up CocoaPods master repo
[!] 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)

所以我更新了cocoapods

So I updated cocoapods

$ sudo gem update cocoapods

但它告诉我有无需更新:

But it tells me there is nothing to update:

Password:
Updating installed gems
Nothing to update

运行
pod --version

run pod --version

但我得到了:

 0.31.0

它可能是什么?为什么它没有更新到最新版本(.32.1)?

What could it be? Why it is not updating to the latest version (.32.1)?

Xcode:5.1

Xcode: 5.1

ruby​​:2.0.0p353

ruby: 2.0.0p353

OSX:10.9.2

OSX: 10.9.2

推荐答案

更新cocoapods只需

To update cocoapods just do

sudo gem install cocoapods

然后你应该是正确的版本

and then you should be at the correct version

这篇关于当运行pod安装我得到`master` repo需要CocoaPods 0.32.1,尝试更新但仍然在0.31的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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