xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance
解决方案:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Xcode.app 就是我们要指定的Xcode名称,如果是测试版的要改成Xcode-beta.app