DEV Community

Dahye Ji
Dahye Ji

Posted on

3 1

Error I had after updating MacOS to Monterey from Big Sur

I had an error when I updated to Big Sur as well. Because my bash didn't work and had to use zsh.
This time my git command didn't work.

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Enter fullscreen mode Exit fullscreen mode

This was what I saw from my terminal.
Link that solved my problem: https://stackoverflow.com/questions/52522565/git-is-not-working-after-macos-update-xcrun-error-invalid-active-developer-pa

I had to use these commands

sudo xcode-select --reset
xcode-select --install
Enter fullscreen mode Exit fullscreen mode

Then then error message's gone. However when I tried to git clone something.. I got another message saying this...

error-monterey1
So, I pressed enter(return key).
Then you will see long agreement doc.
error-monterey2

Just keep pressing space until you see this
error-monterey3
Okay... so I typed the command

sudo xcodebuild -license
Enter fullscreen mode Exit fullscreen mode

then type your password. Then you will see another long agreement doc
error-monterey4

and at the end you will see things like above.
Type anything but cancel.
Then it's done.
If there's someone updated from Big Sur to Monterey and had the same issue, I hope this is helpful!

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more