Tout d'abord, installer XCode via l'App Store (logiciel libre) et installer les outils en tapant dans le terminal :

   xcode-select --install