2014-01-26 46 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