Si no tiene Xcode instalado, descárguelo e instálelo desde App Store y ejecute una vez para completar su configuración

First, check that you have Xcode installed, if yes
Point xcode-select to the Xcode app Developer directory 
using the following command:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
MitchAloha