2014-01-26 43 views
1

我尝试在OS X 10.9.1上安装/更新Xcode5。解决家酿的问题。所以我尝试:xcode-select --install not running

xcode-select --install 

在论坛/谷歌他们说,它会开始安装例如。 here但我得到:

Usage: xcode-select -print-path 
    or: xcode-select -switch <xcode_folder_path> 
    or: xcode-select -version 
    Arguments: 
    -print-path      Prints the path of the current Xcode folder 
    -switch <xcode_folder_path>  Sets the path for the current Xcode folder 
    -version      Prints xcode-select version information 

为什么?哪里不对?

thx为您的帮助!

回答

0

打印您的Xcode路径 xcode-select -print-path

如果您的Xcode的路径是不是= /Applications/Xcode.app/Contents/Developer

改变它在终端

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

+0

的路径是“/Applications/Xcode.app/Contents/Developer' – meck373

+1

粘贴并运行终端后在这里输出结果'ruby -e“$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)”' – iCoder