I did exactly this, my issue is gone now.
First:
xcode-select --print-path
it gave path /Library/Developer/CommandLineTools
so:
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
it pops up the install window, just install and you are on your way.
Thanks Stackoverflow!