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.
**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:
- Removing the tools.
- 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.