ERROR: While executing gem ... (Gem::FilePermissionError) 错误处理

ERROR:  While executing gem ... (Gem::FilePermissionError):

改成:

  • 卸载原有的 Cocoapods

    sudo gem uninstall cocoapods

  • 重新安装 Cocoapods 

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

  • 赋予/usr/local/bin给予执行与读取权限

    sudo chmod -R +rx /usr/local/bin/

posted @ 2020-09-04 16:59  第三维  阅读(3133)  评论(0编辑  收藏  举报