Genstrings Xcode error

Using genstring from the command line gives the following error. Any help would be appreciated.

The solution was to use the following command on the terminal:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer