Mac OS 系统 Cocoapods 执行pod install命令时报错 报错信息如下 You don't have write permissions for the /System/Library/ Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 direct 解决方案 brew update brew install ruby 将上述图片当中的命令复制到终端中运行 并执行以下命令 source ~/.zshrc 最后执行Cocoapods 下载命令 sudo gem install cocoapods