iOS自動化構(gòu)建 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/D...
報這個錯誤的原因是xcode-select不在默認的路徑
1.找到xcode-select的當(dāng)前路徑終端命令行
xcode-select --print-path
/Library/Developer/CommandLineTools
2.設(shè)置xcode-select到指定位置
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
3.驗證是否設(shè)置成功
xcode-select --print-path
/Applications/Xcode.app/Contents/Developer