找不到豆荚:在64个宝石中找不到'cocoapods'(> = 0)(Gem :: LoadError) [英] Pod not found: Could not find 'cocoapods' (>= 0) among 64 total gem(s) (Gem::LoadError)

查看:96
本文介绍了找不到豆荚:在64个宝石中找不到'cocoapods'(> = 0)(Gem :: LoadError)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 sudo gem install cocoapods 安装cocoapods之后,尝试运行 pod setup 会返回此错误:

After installing cocoapods with sudo gem install cocoapods, attempting to run pod setup returns this error:

Could not find 'cocoapods' (>= 0) among 64 total gem(s) (Gem::LoadError)

sudo gem install cocoapods的输出

CHANGELOG:

[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.28.0...0.29.0)
• [CocoaPods-core](https://github.com/CocoaPods/Core/compare/0.28.0...0.29.0)
• [cocoapods-downloader](https://github.com/CocoaPods/cocoapods-downloader/compare/0.2.0...0.3.0)

[ bug/enhancement notes removed for brevity]

Successfully installed cocoapods-0.29.0
Parsing documentation for cocoapods-0.29.0
1 gem installed

当我列出安装的宝石时,我看不到本地宝石中列出的cocoapods,但是我确实在/usr/local/Cellar/ruby/2.0.0-p0/中列出了 pod斌。

When I list the gems installed, I do not see cocoapods listed among my Local Gems but I do see 'pod' listed in /usr/local/Cellar/ruby/2.0.0-p0/bin.

系统配置:

Mac OS 10.9 (upgraded from 10.8)
Xcode: 5.0.2 (upgrade from 4.x)
Ruby path: /usr/local/Cellar/ruby/2.0.0-p0

我怎样才能使cocopods为我工作?

How can I get cocopods to work for me?

推荐答案

卸载并重新安装终端机上的CocoaPods为我解决了此问题(有关更多信息,请参见 CocoaPods文档):

Uninstalling and reinstalling CocoaPods from the Terminal fixed the issue for me (see the CocoaPods documentation for more information):

gem uninstall cocoapods
gem install cocoapods

这篇关于找不到豆荚:在64个宝石中找不到'cocoapods'(> = 0)(Gem :: LoadError)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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