I have installed command line tools through Xcode. When I ran xcode-select -p
, its showed /Applications/Xcode.app/Contents/Developer
.
However, when I ran brew config
, it showed CLT: N/A
. And when I updated python using brew, it showed Warning: Building python from source: The bottle needs the Apple Command Line Tools to be installed.
The command you need to update Xcode is softwareupdate command [args ...] . You can use softwareupdate --list to see what's available and then softwareupdate --install -a to install all updates or softwareupdate --install <product name> to install just the Xcode update (if available).
I've got the same issue just now. Running xcode-select --install
to reinstall Command Line Tools worked for me, brew config
now reports CLT: 7.3.1.0.1.1461711523
.
As xcode-select --install
did not solve the issue for me:
I had to run brew doctor
which listed Warning: Some installed formula are missing dependencies.
including a brew install command to fix these. After running that, brew config
reported CLT
no longer as N/A
.
Use sudo xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install
to install the standalone command line developer tools.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With