Can't upgrade XCode Command Line Tools

My current installation of XCode Command Line Tools behaves like this:

$ xcode-select -p
/Library/Developer/CommandLineTools
$ /Library/Developer/CommandLineTools/usr/bin/clang --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ xcode-select --version
xcode-select version 2354.
$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

Nothing new appears under Software Update so I thought I'd try to download a package directly and install that.

Trying to install any of the following versions of Command Line Tools for Xcode:

  • 15 beta 7
  • 14
  • 13

from https://developer.apple.com/download/all/?q=command%20xcode gives an error like this:

About This Mac says I'm running macOS 10.14.6 (18G9323) on a MacBook Pro (15-inch, Mid 2012)

14.6 would seem to be more recent than 13.4.

I don't have XCode itself installed but I shouldn't need that, should I? What else am I missing?

Trying to install any of the following versions of Command Line Tools for Xcode:

  • 15 beta 7
  • 14
  • 13

About This Mac says I'm running macOS 10.14.6 (18G9323)

That’s not going to work.

Consider the table in Developer > Support > Articles > Xcode. The last versions of Xcode that supports macOS 10.14 was Xcode 11.3.x. In general, the Command Line Tools package follows the same system requirements as its associated Xcode, and thus the latest command-line tools package you can install is Command Line Tools for Xcode 11.3.1.

I just installed that on a 10.14.6 VM here in my office and it worked as expected:

$ clang --version
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

14.6 would seem to be more recent than 13.4.

You’ve misread your version number. You’re running macOS 10.14.6, not 14.6 [1], and 10.14.6 is less than 13.4.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] macOS 14.6 doesn’t exist, yet. We’re currently seeding macOS 14.0 beta.

Can't upgrade XCode Command Line Tools
 
 
Q