Skip to content

Your Xcode is too outdated.

Why

This is an error that comes up after a major upgrade

You will see the below error

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.

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.

How to fix

System Preferences

What to do if there's no updates

Continue to Command line fix

  1. Open System preferences on the Mac
  2. Go to Software update
  3. Check for Updates
  4. Install Updates

Command Line fix

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

A pop-up should display like the below

xcode-select

Click install then 3 finger swipe up and click it again.

It should display the below now

img_1.png

Still getting the error

Open xcode and check the version:

  1. Open xcode
  2. Click Xcode on the top bar
  3. Click about Xcode

If the version is not the latest version (14.1 at time of writing) - You will need to do the below

Update Command line tools for xcode

Open terminal

 softwareupdate --list

This should hoprefully show the below

➜ softwareupdate --list
Software Update Tool

Finding available software
Software Update found the following new or updated software:
* Label: Command Line Tools for Xcode-14.0
        Title: Command Line Tools for Xcode, Version: 14.0, Size: 687109KiB, Recommended: YES,

Upgrade it with:

softwareupdate --install --all

Still not working

If it's still not working, move xcode to trash, reboot and re-install it

Possible side effects

XCRUN

XCRUN may become unavailable during the installation

img_2.png

Do not worry, it will come back once it's installed

xcrun error: invalid active path


Want to make this site better? Open a PR or help fund hosting costs