Can't find Command Line Tools for Xcode 15.2

I have the latest compatible version of Xcode (15.2) for macOS Ventura 13.6.9, but it was installed without the CLT. I searched the developer resources from Apple, but I couldn't find the CLT for Xcode 15.2. Also trying xcode-select --install installs version 14.3.1.0.1.1683849156 which isn't the latest. How can I install the version of CLT for Xcode 15.2?

Answered by odebroqueville in 802174022

I had figured out that CLT 15.2 hadn't been released! ChatGPT's answer was insightful:

The latest version of the Command Line Tools (CLT) for Xcode 15.2 available for macOS Ventura is still 15.1. As of now, Apple has not released an updated CLT specifically for Xcode 15.2. This has been confirmed by various users who have noted that even after updating to Xcode 15.2, the Command Line Tools remain at version 15.1​(MacRumors Forums). If you require the tools, you can continue using the 15.1 version, which should be compatible with your development needs on macOS Ventura.

xcode-select --install installs version 14.3.1.0.1.1683849156 which isn't the latest.

Your tools may be using a different version of Xcode.

To find out what version of Xcode is being used by your tools, run xcode-select -p in Terminal.

If xcode-select -p returns a version different from Xcode 15.2, switch to Xcode 15.2, then run xcode-select --install . To switch to Xcode 15.2, run the following command in Terminal:

$ sudo xcode-select -switch <path/to/>Xcode.app

where <path/to/> is the path to Xcode 15.2 on your system.

xcode-select -p returns:

/Library/Developer/CommandLineTools

If I run the following script:

#!/bin/zsh

CLTEST="/Library/Developer/CommandLineTools/SDKs"
RED="\033[00;38;5;196m"

# Check if the directory exists
if [[ -d ${CLTEST} ]]; then
    # Get the Command Line Tools version and installation date
    CLVERSION=$(pkgutil --pkg-info $(pkgutil --pkgs | grep CLTools | head -n 1) | \
                awk '/version:/ {print $2}')
    CLDATE=$(pkgutil --pkg-info $(pkgutil --pkgs | grep CLTools | head -n 1) | \
                awk '/install-time:/ {print $2}')
    
    # Print the version and installation date
    printf 'Version:      %s\nInstall Date: %s\n' ${CLVERSION:0:6} "$(date -j -r ${CLDATE} +"%F %T")"
else
    # Print error message and exit
    echo "${RED}CommandLineTools are not installed."
    exit 1
fi

exit 0

I get:

Version:      14.3.1
Install Date: 2024-08-27 17:14:36

However, I have no idea if 14.3.1 is the latest version of CLT for Xcode 15.2 as these CLT cannot by downloaded from Apple Developer Resources.

If I then try:

sudo xcode-select -switch /Applications/Xcode.app

followed by:

xcode-select -p

I get:

/Applications/Xcode.app/Contents/Developer

which doesn't help me a lot!

I searched the developer resources from Apple, but I couldn't find the CLT for Xcode 15.2.

You can't download the command line tools for Xcode 15.2 as they weren't released.

  • Xcode 15.1 includes SDKs for iOS 17.2, iPadOS 17.2, tvOS 17.2, watchOS 10.2, and macOS Sonoma 14.2.

  • Xcode 15.2 includes SDKs for iOS 17.2, iPadOS 17.2, tvOS 17.2, watchOS 10.2, macOS Sonoma 14.2, and visionOS.

  • Xcode 15.3 includes SDKs for iOS 17.4, iPadOS 17.4, tvOS 17.4, watchOS 10.4, macOS Sonoma 14.4, and visionOS 1.1.

Both Xcode 15.1 and Xcode 15.3 have paired command line tools available for download.

If you need to develop visionOS apps, you'll need to download Xcode 15.3, which requires macOS Sonoma 14. For more information, see the Minimum requirements and supported SDKs table.

Accepted Answer

I had figured out that CLT 15.2 hadn't been released! ChatGPT's answer was insightful:

The latest version of the Command Line Tools (CLT) for Xcode 15.2 available for macOS Ventura is still 15.1. As of now, Apple has not released an updated CLT specifically for Xcode 15.2. This has been confirmed by various users who have noted that even after updating to Xcode 15.2, the Command Line Tools remain at version 15.1​(MacRumors Forums). If you require the tools, you can continue using the 15.1 version, which should be compatible with your development needs on macOS Ventura.

Can't find Command Line Tools for Xcode 15.2
 
 
Q