I had the same issue like @darrylfromredwoodcity described.
My problem was that I hat installed multiple versions of Xcode and the wrong Command Line Tools were selected.
Changing the CLT fixed it for me:
Xcode > Preferences > Location > Command Line Tools -> Select correct version
Topic:
App & System Services
SubTopic:
Core OS
Tags: