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/Dev…


This content originally appeared on DEV Community and was authored by Dahye Ji

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

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

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

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!


This content originally appeared on DEV Community and was authored by Dahye Ji


Print Share Comment Cite Upload Translate Updates
APA

Dahye Ji | Sciencx (2021-12-19T14:02:37+00:00) Error I had after updating MacOS to Monterey from Big Sur. Retrieved from https://www.scien.cx/2021/12/19/error-i-had-after-updating-macos-to-monterey-from-big-sur/

MLA
" » Error I had after updating MacOS to Monterey from Big Sur." Dahye Ji | Sciencx - Sunday December 19, 2021, https://www.scien.cx/2021/12/19/error-i-had-after-updating-macos-to-monterey-from-big-sur/
HARVARD
Dahye Ji | Sciencx Sunday December 19, 2021 » Error I had after updating MacOS to Monterey from Big Sur., viewed ,<https://www.scien.cx/2021/12/19/error-i-had-after-updating-macos-to-monterey-from-big-sur/>
VANCOUVER
Dahye Ji | Sciencx - » Error I had after updating MacOS to Monterey from Big Sur. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/19/error-i-had-after-updating-macos-to-monterey-from-big-sur/
CHICAGO
" » Error I had after updating MacOS to Monterey from Big Sur." Dahye Ji | Sciencx - Accessed . https://www.scien.cx/2021/12/19/error-i-had-after-updating-macos-to-monterey-from-big-sur/
IEEE
" » Error I had after updating MacOS to Monterey from Big Sur." Dahye Ji | Sciencx [Online]. Available: https://www.scien.cx/2021/12/19/error-i-had-after-updating-macos-to-monterey-from-big-sur/. [Accessed: ]
rf:citation
» Error I had after updating MacOS to Monterey from Big Sur | Dahye Ji | Sciencx | https://www.scien.cx/2021/12/19/error-i-had-after-updating-macos-to-monterey-from-big-sur/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.