This has been solved now. There was an issue with Xcode in preferences >> Locations. The option for ‘Command Line Tools:’ was blank, and when I selected ‘Xcode 8.2.1 (8C1002)’ and closed the preferences, things worked fine.
This has been solved now. There was an issue with Xcode in preferences >> Locations. The option for ‘Command Line Tools:’ was blank, and when I selected ‘Xcode 8.2.1 (8C1002)’ and closed the preferences, things worked fine.