Unable to install Xcode Command Line tools.

I am on the macOS 26 beta, and I am receiving this error. I was able to install before, then I decided to uninstall, now I need it again.

Answered by DTS Engineer in 857433022

**Please note that if you install Xcode on your system, then there is no need to install the command-line tools separately. **

I was able to install before, then I decided to uninstall, now I need it again.

Uninstalling the command-line tools requires two steps:

  1. Removing the tools.
  2. Deleting the package receipt.

To delete the package receipt, you run the following command:

% sudo pkgutil --forget com.apple.dt.commandlinetools

If the task succeeds, pkgutil prints the following message:

% sudo pkgutil --forget com.apple.dt.commandlinetools
No receipt for 'com.apple.dt.commandlinetools' found at '/'.

Confirm that you deleted the package receipt, restart your machine, then try % xcode-select --install to install the tools.

**Please note that if you install Xcode on your system, then there is no need to install the command-line tools separately. **

I was able to install before, then I decided to uninstall, now I need it again.

Uninstalling the command-line tools requires two steps:

  1. Removing the tools.
  2. Deleting the package receipt.

To delete the package receipt, you run the following command:

% sudo pkgutil --forget com.apple.dt.commandlinetools

If the task succeeds, pkgutil prints the following message:

% sudo pkgutil --forget com.apple.dt.commandlinetools
No receipt for 'com.apple.dt.commandlinetools' found at '/'.

Confirm that you deleted the package receipt, restart your machine, then try % xcode-select --install to install the tools.

Unable to install Xcode Command Line tools.
 
 
Q