Can't update Developer Tools on Mojave

Hello,


This question is about the Command Line Developer Tools that are usually installed with

xcode-select --install
and updated via a software update from the Mac App Store (at least until macOS 10.13). I use the developer toolchain on a daily basis and it has always worked and updated without issues.


Today I've updated my mac from High Sierra 10.13.6 to Mojave 10.14.1, and I've lost the ability to update the Developer Tools.


After the update I've executed a terminal command that relies on the developer tools being installed. It was a command to update Homebrew, although I don't think that the specifics matter, as I believe that any task that tried to access the developer tools would have triggered the same error message.


The error was:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

User uploaded file


The phrasing was new, but I thought that it was caused by the usual need to re-install the Developer Tools after some macOS updates.


Later I tried to dig a bit deeper into the failure, and found out that:

$ ls -l /Library/Developer/CommandLineTools/usr/
total 0
drwxr-xr-x 3 root admin 96 4 Nov 19:32 share
$ which xcrun
/usr/bin/xcrun
$ xcode-select -p
/Library/Developer/CommandLineTools


Still, as I normally do, I entered the command to install and update the Developer Tools in the terminal:

xcode-select --install


This started the usual procedure: modal window to confirm, then request to accept the license agreement, followed by a progress bar. Except that it failed very quickly with an unexpected error:


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

User uploaded file

I've tried several times, to no avail. It gets always stuck.


Sometimes, however, the failure causes the System Preferences to report a pending update:


User uploaded file User uploaded file


If I open that preference panel it starts searching for updates, and it always finds nothing except the first time that it happened. The first time, it found this:


User uploaded file

User uploaded file


It literally suggested me to install the updates for macOS 10.11 and 10.13. I have no idea why.


I closed the preference panel without installing the updates, and as I said it hasn't shown them again. There is also no update available in new Mac App Store.


Is this a known issue? Is there any way to resolve the problem?


Message was edited by: tompave - fix typo

Posted on Nov 4, 2018 5:45 PM

Reply

Similar questions

4 replies

Nov 5, 2018 8:44 PM in response to tompave

Exact same problem here (with the exception of the unusual software updates for previous OS dev tools 10.11 & 10.13 ).


I'm seeing this issue on a totally clean install (10.14.1) MacBook Pro 2016. I'm creating an applescripted automated setup of a developer environment for Mojave, which installs Xcode developer tools using xcode-select --install as part of the process, so the issue has literally stopped me being able to work.


After researching a little it looked like this error message was caused from Xcode already being installed, so I ran xcode-select -p and received the following error message...


unable to get active developer directory, use `sudo xcode-select --switch path/to/Xcode.app` to set one (or see `man xcode-select`)


on testing a make command I received the following....


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

(edit. this trigged the dialogue to install the dev tools again, but clicking 'install' triggered the same error messages as detailed by the op).


Hopefully this will save someone trying a clean install to fix the problem, I can confirm it still stands.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't update Developer Tools on Mojave

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.