liubaoheng
朝着阳光飞去
采纳率25%
2016-04-13 11:04

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

已采纳

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 朕就是这么帅 5年前

    1: sudo gem uninstall cocoapods

    2: gem install cocoapods

    3: pod install

    点赞 1 评论 复制链接分享
  • u011864662 昵称可以修改么 5年前

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

    点赞 评论 复制链接分享
  • lck5201314cs iOS_DEV_long 5年前

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

    点赞 评论 复制链接分享