Unable to install xcode command line developer tools

I recently did a factory reset on my Macbook Pro and I'm trying to get the xcode command line developer tools back.

When I run xcode-select --version I get the following:

xcode-select version 2373.

Even though I have a version number for xcode-select (2373) I don't seem to have access to basic developer tools. For example, here is what happens when I try to use git.

xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

This prompts me to install the command line developer tools. When I click install I get the following error.

Can’t install the software because it is not currently available from the Software Update server.

I also run into the exact same issue when I run xcode-select --install.

Note: I'm currently running macOS Catalina Version 10.15.6

7 Replies

I managed to fix the issue... I didn't have Xcode installed. I downloaded it through the App Store and everything went back to normal.

If you run into this problem, check to make sure you have Xcode installed first 🤦‍♂️
Same here. Downloading CommandLineToolsforXcode_12.dmg directly fixed the problem.
The solution from @bubbleshadow did work for me.


UPDATE: I think I fixed it by downloading the tools manually at https://developer.apple.com/download/more/?=command%20line%20tools



I am also having this issue. JetBrains says "Invalid path to Command Line Tools" but when I try the fix, it opens up a dialog that either hangs or tells me the software is not currently available.

I got this issue both before and after updating Xcode. I also recently just switched to Catalina, I was not having this problem before.

UPDATE: I think I fixed it by downloading the tools manually at https://developer.apple.com/download/more/?=command%20line%20tools
This is still happening for me. Prior to Xcode 12, Xcode itself was not required to install the command line tools using xcode-select. When will xcode-select --install be fixed?
Ah....that makes sense. Thanks for the followup and good luck w/your apps.

Can’t install the software because it is not currently available from the Software Update server.

I'll assume you're working w/Xcode 12.x (non-beta), but that admonition seems clear enuf, given the current influx of updates and how busy the update servers are right now.

Note the 12.x CLTs are out as of yesterday, so rather than run a local command, maybe download and then go: https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_for_Xcode_12_GM_seed/Command_Line_Tools_for_Xcode_12_GM_seed.dmg

Perhaps the signing servers aren't so tied up ;)

Good luck.