Xcode tidak diinstal atau tidak dikonfigurasi dengan benar. Unduh, instal, atur dan jalankan skrip ini lagi

Point xcode-select to the Xcode app Developer directory 
using the following command:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
MitchAloha