cocoapods

// 适配新版本  更改源
gem sources --add https://ruby.taobao.org/ --remove http://ruby.taobao.org/

1.升级10.11后,运行pod命令出现:

      -bash: pod: command not found

 安装时   Mac-mini:~ macuser$ sudo gem install cocoapods

      ERROR:  While executing gem ... (Errno::EPERM)

          Operation not permitted - /usr/bin/pod



解决办法:

sudo gem install -n /usr/local/bin cocoapods
 
posted @ 2016-06-22 10:25  阳光普照大地  阅读(74)  评论(0编辑  收藏  举报