I\'ve seen several (well, not that many, but a few) questions here on SO dealing with this error, but none of the proposed solutions worked for me. This is what I get
To see your current Xcode path:
xcode-select -p
Mine was an old path:
/Applications/Xcode.app/Contents/Developer
Then update this path via:
sudo xcode-select -s /Library/Developer/CommandLineTools