CocoaPods OSX 10.11.4

换了台电脑,没有CocoaPods了。装呗

1.查看源
gem sources -l
*** CURRENT SOURCES ***
https://rubygems.org/

2.移除源
gem sources --remove https://rubygems.org/

3.添加镜像
gem sources -a https://ruby.taobao.org/

4.再次查看
gem sources -l
*** CURRENT SOURCES ***
https://ruby.taobao.org/

5.安装
sudo gem install cocoa pods
报错了!error……

然后各种查,有说多个xcode路径需要修改的,有说gem太老需要更新的
最终发现安装CocoaPods时候的,在OSX 10.11系统下需要换一句话
sudo gem install -n /usr/local/bin cocoa pods

就好了……

你可能感兴趣的:(CocoaPods OSX 10.11.4)