在 N 个宝石中找不到“cocoapods"(> = 0)(Gem::LoadError) [英] Could not find 'cocoapods' (>= 0) among N total gem(s) (Gem::LoadError)

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

问题描述

当我尝试 pod install 时,遇到以下问题:

Faizs-MBP:newj faizfareed$ pod install/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in `to_specs': 在 50 个 gem(s) (Gem::LoadError) 中找不到 'cocoapods' (>= 0)签入'GEM_PATH=/Users/faizfareed/.gem/ruby/2.0.0:/Library/Ruby/Gems/2.0.0:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0', 执行 `gem env` 获取更多信息来自/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:324:in `to_spec'来自/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'来自/usr/local/bin/pod:22:in `<main>'Faizs-MBP:newj faizfareed$

您还可以找到上述错误的附件

请指教...

谢谢

解决方案

最后我得到了在 OS X El Capitan 中安装 CocoaPods 的解决方案

首先在终端中使用以下命令删除或卸载所有可用的 Gems(位于 Launchpad>Other>Terminal 或您也可以在 Finder>Applications>Utilities>Terminal 中找到)

gem uninstall --allsudo gem 卸载 --all

当成功卸载所有 Gems 后,然后在终端中写入以下命令

sudo gem install -n/usr/local/bin cocoapods吊舱设置

希望大家都在等待这个答案.无论如何,这对我有用,因此我认为这是解决该特定问题的最佳解决方案.

When I am trying to pod install, getting following issue:

Faizs-MBP:newj faizfareed$ pod install
/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'cocoapods' (>= 0) among 50 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/faizfareed/.gem/ruby/2.0.0:/Library/Ruby/Gems/2.0.0:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0', execute `gem env` for more information
    from /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:324:in `to_spec'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
    from /usr/local/bin/pod:22:in `<main>'
Faizs-MBP:newj faizfareed$ 

You can also find attached detailed image for above error.

Could anyone sort out this issue???


I've followed your instructions & uninstalled all gem. but when I tried to install cocoapods it is giving following error.

Please advice. . .

Thanks

解决方案

Finally I got Solution For installation of CocoaPods in OS X El Capitan

First remove or uninstall all available Gems by using following command in your terminal(which is located in your Launchpad>Other>Terminal or you can also find that in Finder>Applications>Utilities>Terminal)

gem uninstall --all
sudo gem uninstall --all

When after successful uninstallation of all Gems, Then write following command in your terminal

sudo gem install -n /usr/local/bin cocoapods
pod setup

Hope all of you will be awaiting for this answer. anyway, this works for me hence according to me it is best suitable solution to that particular problem.

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

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