iOS自动化构建报错 xcode-select: error:
作者:
致青春_bf42 | 来源:发表于
2020-03-23 18:21 被阅读0次
iOS自动化构建报错 xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
报这个错误的原因是xcode-select不在默认的路径
1.找到xcode-select的当前路径终端命令行
xcode-select --install #安装命令行工具(如果尚未安装)
sudo xcode-select --switch / Library / Developer / CommandLineTools #启用命令行工具
或者,如果愿意,可以将完整的Xcode.app(如果已安装)与以下项一起使用:
#如果在其他地方安装了Xcode,请更改路径。
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
本文标题:iOS自动化构建报错 xcode-select: error:
本文链接:https://www.haomeiwen.com/subject/nwxgyhtx.html
网友评论