xcode-select --install installs Command Line Tools for Xcode 14.2 instead of the latest version

One of the supported methods to install the Command Line Tools for Xcode is with the command "xcode-select --install”.

I have recently submitted a Feedback (FB12355012) because currently, when using this command on macOS Ventura 13.4 (22F66) and according to System Information application -> "Installations”, version 14.2 is installed even if the latest (non-beta) version is 14.3.1.

The answer from Apple has been that the behavior I'm experiencing is currently functioning as intended.

However, I think that should be installed version 14.3.1 instead of 14.2 and that the “Command Line Tools for Xcode” line in System Information application -> "Installations" should report version 14.3.1.

Am I missing something here? In your opinion, why Apple thinks that is fine to install an old version of the tools?

Answered by XFox in 757874022

I've just found that actually the problem is the misleading record that gets written and reported by the System Information app in the "Installations" section.

On a test Mac, I removed the current Command Line Tools for Xcode installation by simply wiping the /Library/Developer/CommandLineTools folder, then I reinstalled them with the xcode-select --install command.

As soon as the installer finished its work, I run the swift --version command to precisely determine the version of the tools that have been just installed by comparing the output with this table and I found that it matches version 14.3.1 of the tools.

However, and that's the bug here, System Information app still reports that version 14.2 has just been installed, not version 14.3.1.

Accepted Answer

I've just found that actually the problem is the misleading record that gets written and reported by the System Information app in the "Installations" section.

On a test Mac, I removed the current Command Line Tools for Xcode installation by simply wiping the /Library/Developer/CommandLineTools folder, then I reinstalled them with the xcode-select --install command.

As soon as the installer finished its work, I run the swift --version command to precisely determine the version of the tools that have been just installed by comparing the output with this table and I found that it matches version 14.3.1 of the tools.

However, and that's the bug here, System Information app still reports that version 14.2 has just been installed, not version 14.3.1.

xcode-select --install installs Command Line Tools for Xcode 14.2 instead of the latest version
 
 
Q