大晚上装CocoaPods出现错误坑爹

[!] Pod::Executable clone 'https://github.com/CocoaPods/Specs.git' master

xcrun: error: active developer path ("/Users/xiakejie/工具/Xcode 2.app/Contents/Developer") does not exist, use xcode-select to change

解决办法:sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

05-11 13:48