iOS自动化构建 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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM