Mac升级big sur之后cocoapods不能使用问题

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

参考链接:https://www.jianshu.com/p/9c98b91a3898

你可能感兴趣的:(Mac升级big sur之后cocoapods不能使用问题)