Upgrading macOS with Homebrew

After having my M1 Macbook Air for 2 years, I’ve upgraded to a refurbed M2. The form factor of the 2022 model is really nice and I love the slightly larger screen space. As much as I loved the old one, I was finding that having only two USB-C ports a pain. Now I charge and have two devices plugged in. I didn’t think it’d be a problem until I had started using it.

When it arrived, the first thing I did was install all the developer tools that I needed and got to work. But then I realised it didn’t come with Ventura, and now it’s upgraded Homebrew has fallen apart again.

git clone [email protected]:jbrooksuk/artisan.page.git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

To fix this:

xcode-select --install

But sometimes, this doesn’t work and then instead, you need to run:

sudo xcode-select --reset

Which should fix it.