Mac M1 安装Cocoapod失败,提示You don't have write permissions
参照该问题:https://stackoverflow.com/questions/66128681/ruby-build-failed-macos-11-2-using-ruby-build-20210119-mac-big-sur把brew,rbenv都安装在x86架构下运行主要方法就是在安装命令前面加上arch-x86_64安装brew:arch-x86_64/usr/bin/ruby-e"