
The easiest way to achieve this is by removing the old version of the tools, and installing the new one. In most cases updating macOS first will solve the problem and allow Xcode to be updated as well.Ī large portion of users are landing on this answer in an attempt to update the Xcode Command Line Tools. The cause for this is more than likely a pending macOS update (as pointed out below). You can get the name from the list command.Īs it was mentioned in the comments here is the man page for the softwareupdate tool.Ī lot of users are experiencing problems where softwareupdate -install -a will in fact not update to the newest version of Xcode. You can use softwareupdate -list to see what's available and then softwareupdate -install -a to install all updates or softwareupdate -install to install just the Xcode update (if available). The command you need to update Xcode is softwareupdate command.

Hence the error message you got - the tools are already installed. I also was not served the iOS 14.What you are actually using is the command to install the Xcode command line tools - xcode-select -install. I initially wrote this post thinking that command line tools are not updated across major OS version upgrades, but I’m now wondering if the cache at the ISP is stale which is why I do not have the update.

While these two events were happening I wondered why the initial download was clocking up hours to download a 451MB file so I fired up tcpdump to see if there was any traffic coming through, turns out actually my machine was very busy downloading from an IP address of my ISP via plain HTTP. When the initial install process invoked by running xcode-select complete, the update offered via Software Update disappears and it goes back to reporting everything is up to date. As a bonus while the install is in progress, macOS will serve a notice that an update is available and pop up the Software Update section in System Preferences. You can remove /Library/Developer/CommandLineTools and rerun xcode-select -install at which point you’ll obtain the latest version of command line tools. So updates are managed via the Software Update section in System Preferences and macOS reckons I’m up to date. Though you install the command line tools using xcode-select -install, there’s no way to force a reinstall with the tool as rerunning the command will tell you xcode-select: error: command line tools are already installed, use "Software Update" to install updates. Turns out I was on an older version of clang despite both of us running the same version of macOS Catalina. Lost some time debugging a build issue which I was unable to reproduce.
