Thanks @mcingi and I think I think it is better to up vote the correct answer as this makes it easy for other people to find.
For those experiencing problem after running
$ sudo xcode-select -switch /Library/Developer/CommandLineTools Try downloading the Xcode command line tools from -> Apple Developers Command line tools - https://developer.apple.com/download/more/?=command%20line%20tools and repeat the xcode-select command above. All the best !