2 liubaoheng liubaoheng 于 2016.04.13 19:04 提问

iOS macmini安装cocopod时总是出现的报错,下载成功了都
ios

Installing ri documentation for cocoapods-0.39.0
21 gems installed

bogon:~ sibo$ pod setup

报错开始了进行安装的时候下面是原因

/Users/sibo/.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems.rb:250:in find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)
from /Users/sibo/.rvm/rubies/ruby-2.0.0-p648/lib/ruby/site_ruby/2.0.0/rubygems.rb:278:in
activate_bin_path'
from /Users/sibo/.rvm/rubies/ruby-2.0.0-p648/bin/pod:22:in `'

3个回答

hi_chen_xingwang
hi_chen_xingwang   Rxr 2016.04.13 20:47
已采纳

1: sudo gem uninstall cocoapods

2: gem install cocoapods

3: pod install

lck5201314cs
lck5201314cs   2016.04.13 20:56

https://yq.aliyun.com/articles/15636
完美解决你的问题

u011864662
u011864662   2016.04.15 00:20

一楼的第一条命令过时了加个-n

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!