mac升級系統(tǒng)之后導(dǎo)致cocoapods不能使用,我的解決辦法是把原cocoapods卸載重新安裝,在重新安裝之前先去官網(wǎng)下載command line tools (https://developer.apple.com/download/more/?=for%20Xcode)
然后執(zhí)行以下命令:
sudo xcode-select --switch /Library/Developer/CommandLineTools
sudo gem install cocoapods
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer