cocoapods 没有安装 [英] cocoapods not installing

查看:33
本文介绍了cocoapods 没有安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么意思,我该如何解决:

What does it mean and how can I fix it:

pod install
/Library/Ruby/Site/2.0.0/rubygems.rb:250:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)
from /Library/Ruby/Site/2.0.0/rubygems.rb:278:in `activate_bin_path'
from /usr/local/bin/pod:22:in `<main>'

推荐答案

使用以下命令,对我有用.

Using following commands, it worked for me.

  1. sudo gem 卸载 cocoapods
  2. sudo gem install -n/usr/local/bin
  3. cocoapods pod 安装


如果您在步骤 2 中遇到此错误:


If you encounter this error on step 2:

错误:执行 gem 时 ... (Gem::CommandLineError) 请至少指定一个 gem 名称(例如 gem build GEMNAME)

然后尝试将其作为第 2 步(不需要第 3 步):

Then try this as step 2 instead (step 3 is not needed):

gem install -n /usr/local/bin cocoapods

这篇关于cocoapods 没有安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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