Instale ferramentas de linha de comando no OSX

Basta seguir estas etapas

1. Open terminal.
2. Type "xcode-select --install" in terminal (without quotes).
3. A pop-up windows will apear asking you about install tools.
4. Choose install tools.
5. Wait install to finish it will take 30 minutes.

Ligação