macos升级后安装cocoapods
系统环境:
osx 12.1
1、安装rvm
curl -L get.rvm.io | bash -s stable
2、安装ruby
rvm autolibs read-only
rvm install 2.7.2
rvm use 2.7.2
rvm list
3、安装cocoapods
sudo gem install -n /usr/local/bin cocoapods
pod --version
参考:
https://juejin.cn/post/6950518188798902286
https://blog.csdn.net/sinat_31057219/article/details/116601781