todd-dsm / mac-ops

QnD Automation to build a MacBook Pro for DevOps
MIT License
11 stars 7 forks source link

upgrade command line tools for xcode #35

Closed todd-dsm closed 2 years ago

todd-dsm commented 3 years ago
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you an update run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

https://developer.apple.com/download/more/

todd-dsm commented 2 years ago

This is the solution: sudo softwareupdate -i Command\ Line\ Tools\ for\ Xcode-13.0

CLI Tools are now installed as a dependency to Homebrew. This seems to update nicely:

sudo softwareupdate --all --install --force