iOS 解决基于Alcatraz安装CocoaPods报错 The command path could not be resolved

解决基于Alcatraz安装CocoaPods报错

The command path could not be resolved

Expanded GEM_PATH: /usr/bin 


iOS 解决基于Alcatraz安装CocoaPods报错 The command path could not be resolved_第1张图片
错误截图

$ gem sources --remove https://rubygems.org/

$ gem sources -a http://ruby.taobao.org/

$ gem sources -l

然后升级gem

$ sudo gem update --system

完了就开始安装CocoaPods

$ sudo gem install cocoapods

$ pod setup


另外补充,10.11 cocoapods安装命令: sudo gem install -n /usr/local/bin cocoapods

通过以上命令安装的cocoapods,那么在Xcode的cocoapods插件的GEM_PATH里写入    /usr/local/bin    即可

你可能感兴趣的:(iOS 解决基于Alcatraz安装CocoaPods报错 The command path could not be resolved)