If this problem arose after installing Xcode 9 beta 4. I tried all possible suggestions. The only thing that solved this problem for me was to reinstall the Xcode command line tools:
Open a terminal and enter the command: xcode-select --install
After installation, restart mac.
ElectroBuddha Jul 25 '17 at 9:26 a.m. 2017-07-25 09:26
source share