使用xcodebuild时错误提示:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
找到Xcode安装位置,并显示包内容,拿到developer文件夹路径,执行下面代码
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
现在在执行xcodebuild的命令,成功