mac升级系统之后导致cocoapods不能使用,我的解决办法是把原cocoapods卸载重新安装,在重新安装之前先去官网下载command line tools (https://developer.apple.com/download/more/?=for%20Xcode)
然后执行以下命令:
sudo xcode-select --switch /Library/Developer/CommandLineTools
sudo gem install cocoapods
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer