无法在创建回购时加载宝石可可豆荚 [英] unable to load gem cocoa pods while creating repo
问题描述
rubygems / 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版本)
- 使用
删除cocoapods gem卸载cocoapods
- 安装 rvm ,执行此操作我遵循以下步骤
https: //rvm.io/rvm/install - 然后使用
gem install cocoapods
重新安装cocoapods - 运行
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)
- Remove cocoapods using
gem uninstall cocoapods
- Install rvm, to do this I followed this steps https://rvm.io/rvm/install
- After that reinstall cocoapods using
gem install cocoapods
- 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屋!