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
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。