无法在创建回购时加载宝石可可豆荚 [英] unable to load gem cocoa pods while creating repo

查看:112
本文介绍了无法在创建回购时加载宝石可可豆荚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ruby​​gems / dependency.rb:296:在`to_specs'中:在35个gem(Gem :: LoadError)中找不到'cocoapods'(> = 0)



来自/Users/divyam.shukla/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/dependency.rb:307:in`to_spec'

 来自/Users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext /kernel_gem.rb:47:in`gem'
from /Users/user/.rvm/gems/ruby-2.0.0-p247/bin/pod:22:in`< main>'

我收到这个错误消息。

解决方案

我强烈建议使用rvm来管理ruby版本)


  1. 使用删除cocoapods gem卸载cocoapods

  2. 安装 rvm ,执行此操作我遵循以下步骤
    https: //rvm.io/rvm/install

  3. 然后使用 gem install cocoapods
  4. 重新安装cocoapods
  5. 运行 pod setup

然后,所有的东西都像个魅力一样!

你可能注意到我没有使用 sudo



希望它能帮助你。 / p>

编辑:如果您的网络连接速度较慢,则可能需要几分钟时间才能检查进度或步骤,使用 pod setup --verbose


rubygems/dependency.rb:296:in `to_specs': Could not find 'cocoapods' (>= 0) among 35 total gem(s) (Gem::LoadError)

from /Users/divyam.shukla/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'

from /Users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /Users/user/.rvm/gems/ruby-2.0.0-p247/bin/pod:22:in `<main>'

I am getting this error.

解决方案

Hey I had the same problem that you have, I solve it following the next steps:

(I strongly recommend to use rvm to manage ruby versions)

  1. Remove cocoapods using gem uninstall cocoapods
  2. Install rvm, to do this I followed this steps https://rvm.io/rvm/install
  3. After that reinstall cocoapods using gem install cocoapods
  4. run pod setup

And after that everything works like a charm!.

You could notice that I didn't use sudo.

Hope it could helps you.

EDIT: If you have a slow internet connection it could take several minutes, to check the progress or steps use pod setup --verbose

这篇关于无法在创建回购时加载宝石可可豆荚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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