xcode-select --install not running

2019-08-04 00:07发布

问题:

i try to install/update Xcode5 on OS X 10.9.1. to solve a problem with Homebrew. So i try:

    xcode-select --install

In forums/google they say it will start the installation eg. here but i get:

    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

Why? What is wrong?

thx for your help!

回答1:

Print your Xcode Path xcode-select -print-path

If your Xcode path is not=/Applications/Xcode.app/Contents/Developer

change it in terminal

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