I googled parts of your error message
and found the suggestion to try running the following code in a terminal window (found /Applications/Utilities/Terminal.app):
xcode-select --install
Also, the following thread might have some more options for you if the above still doesn’t cut it:
2 Likes