Se você não tiver o Xcode instalado, faça o download e instale -o na App Store e executá -lo uma vez para concluir sua configuração

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