相关疑难解决方法(0)

xcode-select活动开发人员目录错误

运行npm install所需的node-gyp... 时看到以下错误,但可能由任何需要的东西触发xcode-select.

xcode-select:错误:工具'xcodebuild'需要Xcode,但是活动的开发人员目录'/ Library/Developer/CommandLineTools'是一个命令行工具实例

问题是什么?

macos xcode command-line-tool npm npm-install

601
推荐指数
12
解决办法
28万
查看次数

无法在安装了命令行工具的Mavericks上使用xcodebuild

我已经安装了命令行工具:

$ xcode-select --print-path
/Library/Developer/CommandLineTools
Run Code Online (Sandbox Code Playgroud)

但是,当任何尝试使用时xcodebuild,我收到以下错误:

$ /usr/bin/xcodebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Run Code Online (Sandbox Code Playgroud)

在Mountain Lion上,可以在不安装整个Xcode的情况下使用它,而不仅仅是命令行工具.是否有可能在小牛队做到这一点?我怎样才能让它运转起来?

NB这是一个干净安装的小牛队.

更新:只是为了显示,我确实安装了命令行工具:

$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
Run Code Online (Sandbox Code Playgroud)

macos xcode operating-system osx-mavericks

93
推荐指数
5
解决办法
4万
查看次数