工具'xcodebuild'需要Xcode,但是活动的开发人员目录'/ Library / Developer / CommandLineTools'是命令行工具实例

时间:2019-05-01 16:23:48

标签: xcode npm

这几乎是xcode-select active developer directory error的副本,只是这些解决方案都不适合我。

$ sudo xcode-select --reset
$ sudo xcodebuild -license accept                                  
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
$ sudo xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

我的机器上甚至没有xcode。

1 个答案:

答案 0 :(得分:0)

在安装Xcode Beta时,我也遇到了“ xcode-select活动开发者目录错误”。就您而言,您甚至不需要完整的Xcode,命令行工具应该可以正常工作。阅读此Github issue

相关问题