ChargePoint / xcparse

Command line tool & Swift framework for parsing Xcode 11+ xcresult
MIT License
393 stars 47 forks source link

Xcode-beta: Your Command Line Tools are too outdated. #66

Closed abotkin-cpi closed 3 years ago

abotkin-cpi commented 3 years ago

If you're using Xcode-beta, you may hit issues during the Homebrew install that look like the following:

==> Upgrading 1 outdated package:
chargepoint/xcparse/xcparse 2.1.2 -> 2.2
==> Upgrading chargepoint/xcparse/xcparse
  2.1.2 -> 2.2 

==> Cloning https://github.com/ChargePoint/xcparse.git
Updating /Users/abotkin/Library/Caches/Homebrew/xcparse--git
==> Checking out tag 2.2
HEAD is now at 4553702 Add support for xcresult v3.34 (#65)
HEAD is now at 4553702 Add support for xcresult v3.34 (#65)
Error: Your Command Line Tools are too outdated.
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

If you experience this, the suggestion at the bottom should resolve the issue (so long as you've updated the xcode-select path to point at Xcode-beta:

sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

You'll then see some UI that will install the command line tools again. Then if you run the command again after that succeeds, you should be good to go.

A nice blog post by Adrian Moreno talking about this can be found here.