评审自动化流程构建:
xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory '/Library/D…
报这个错误的原因是xcode-select不在默认的路径
1.终端命令找到xcode-select当前路径
xcode-select --print-path
/Library/Developer/CommandLineTools
2.设置xcode-select到指定位置
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
3.验证是否设置成功
xcode-select --print-path
/Applications/Xcode.app/Contents/Developer