Error: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
解决方案:
使用以下命令把 xcode 的路径修改为你安装的位置即可
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer