Skip to content

Instantly share code, notes, and snippets.

@pich4ya
Created October 29, 2022 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pich4ya/2950d9bfa5eefc85deeaafe1ee13812c to your computer and use it in GitHub Desktop.
Save pich4ya/2950d9bfa5eefc85deeaafe1ee13812c to your computer and use it in GitHub Desktop.
Fix brew with Xcode's Command Line Tools (CLT) errors on macOS 13.0 Ventura
# @author Pichaya Morimoto
# Problem 1
$ brew upgrade
Error: Your Xcode (14.0.1) is too outdated.
Please update to Xcode 14.1 (or delete it).
Xcode can be updated from the App Store.
Error: Your Command Line Tools (CLT) does not support macOS 13.
It is either outdated or was modified.
Please update your Command Line Tools (CLT) or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 14.1.
# Problem 2
Error: Your Command Line Tools (CLT) does not support macOS 13.
It is either outdated or was modified.
Please update your Command Line Tools (CLT) or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 14.1.
# Solution
# https://github.com/orgs/Homebrew/discussions/3822#discussioncomment-3965318
1. Log in https://developer.apple.com/download/all/?q=Xcode
2. [login is required] Download Xcode 14.1 RC2 (https://download.developer.apple.com/Developer_Tools/Xcode_14.1_Release_Candidate_2/Xcode_14.1_Release_Candidate_2.xip)
3. Double click on "Xcode_14.1_Release_Candidate_2.xip" to extract Xcode.app. This will take several minutes. Be patient.
4. Run commands below.
sudo rm -rf /Library/Developer/CommandLineTools
mv Xcode.app /Applications/Xcode_14_1.app
sudo xcode-select --switch /Applications/Xcode_14_1.app
brew upgrade # this should be fine ! no error anymore!
brew doctor
5. Important: DO NOT RUN "sudo xcode-select --install" b/c it will replace CLT RC2 tools with older versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment