CocoaPods

https://www.jianshu.com/p/01a9800612d3

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

sudo xcode-select --install

On macOS Catalina
After installing and uninstalling the developer tools multiple times, this is the only thing that worked for me:

First install the Ruby Version Manager rvm:

curl -L https://get.rvm.io | bash -s stable

Then install the latest version of ruby:

rvm install ruby-2.7.2

Finally try again to install the cocoapods:

gem install cocoapods


/Users/wangjy118/.cocoapods/repos
原文地址:https://www.cnblogs.com/yuxiaoyiyou/p/14583416.html