Can't install Command Line Tool, "xcode-select --install" doesn't work Can't install Command Line Tool, "xcode-select --install" doesn't work xcode xcode

Can't install Command Line Tool, "xcode-select --install" doesn't work


Try downloading directly from the Apple Developer Tools site: https://developer.apple.com/downloads/index.action.
This requires signing in with a developer account.


I came across this issue when I removed Xcode from my laptop (Not enough disk space) and wanted to just install the commandline tools. It installed, but did not fix the Xcode-select path. Using the information above, I then ran:

xcode-select -s /Library/Developer/CommandLineTools

Homebrew is now working great with just the command line tools and I have 9 GB back! Therefore, if you have removed Xcode from your system and just installed the command line tools, you will have to manually run the above command line.


If you are not able to install the XCode CLI using terminal command

sudo xcode-select --install

Just download the command line tool from Apple developer website (below link)

https://developer.apple.com/download/more/

And install it manually.