cocoapods 在10.11下运行pod命令报-bash: pod: command not found
系统是10.11,在运行pod命令是报:-bash: pod: command not found,于是开始找办法解决。
先试了试第一种方案。
sudo gem install -n /usr/local/bin cocoapods
运行成功,但还是会报command not found
不得已再试另一种方法。
$ mkdir -p $HOME/Software/ruby $ export GEM_HOME=$HOME/Software/ruby $ gem install cocoapods [...] 1 gem installed cocoapods $ export PATH=$PATH:$HOME/Sofware/ruby/bin
搞定!