问题1:升级10.12后使用CocoaPod出现-bash: pod: command not found 解决办法
升级10.11后,运行pod命令出现:
-bash: pod: command not found
解决办法:
sudo gem install -n /usr/local/bin cocoapods
问题2:在cocoapods 执行
sudo gem install cocoapods
的时候出现 While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
改为 sudo gem install -n /usr/local/bin cocoapods 即可
网友评论