解决升级EI Capiton CocoaPods "pod: command not found"

96
笨鱼BennettPenn
0.1 2015.10.15 11:51* 字数 133

    升级OS X EI Capiton之后,发现CocoaPods的pod无效了,运行pod后显示:"pod: command not found"的错误。


解决步骤:

1.为了安全起见,执行命令"sudo gem uninstall cocoapods",卸载原有的CocoaPod

2.执行命令"sudo gem install -n /usr/local/bin cocoapods"来重新安装cocoapod

3.如果没有权限执行pod,执行命令"sudo chmod +rx /usr/local/bin/",赋予/usr/local/bin给予执行与读取权限

参考链接:https://github.com/CocoaPods/CocoaPods/issues/3736

All Done!

iOS备忘