指定gem路径安装cocoapods

如果原来有,卸载原来的

sudo gem uninstall cocoapods

安装cocoapods

sudo gem install -n /usr/local/bin cocoapods

参考:https://www.jianshu.com/p/14c7260ab8b7

你可能感兴趣的:(指定gem路径安装cocoapods)