因pod损坏,重安装cocoapods:
在执行命令:
gem update --system
提示如下错误:
Updating rubygems-update
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
原因是没有权限:
这个时候只需要在命令前加上sudo, 例:sudo gem update --system,sudo是获取管理员权限,输入该命令便可继续执行了。