Если у вас нет установки XCode, загрузите и установите его из App Store и запустите его один раз, чтобы завершить его настройку

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