I recently updated to MacOS Catalina. And faced some issues when running some
I cloned a repo from GitHub and tried to run
This error appeared after running the command
No Xcode or CLT version detected
as the cover image above shows.
Now as every faithful developer, I googled the error and pointed me to StackOverflow and some other blogs.
I checked CommandLineTools path with
and it showed the correct path
So maybe the package was broken or some links were not created (not sure lol). So I deleted it
sudo rm -rf /Library/Developer/CommandLineTools
If the window didn't show, just run
So I went to download it manually in Apple website. Use your Apple ID to sign in.
I chose the latest one which is the first entry in the table.
And everything worked back to normal after that.
Hope this helps out somebody.