@lonly_son, Engineering things this is the result of a faulty Xcode install on your computer. Please verify you’re point to the right place:
From the terminal do:
xcode-select -p
and make sure it says:
/Applications/Xcode.app/Contents/Developer
If it does, I would remove and re-install Xcode making sure you have the latest version. If it’s not pointing to that, make sure that path exists:
ls -l /Applications/Xcode.app/Contents/Developer
It should output this:
total 0
drwxr-xr-x 3 root wheel 102 Apr 11 16:44 Documentation
drwxr-xr-x 6 root wheel 204 Apr 11 16:44 Library
drwxr-xr-x 6 root wheel 204 Apr 11 16:44 Makefiles
drwxr-xr-x 5 root wheel 170 Apr 11 16:44 Platforms
drwxr-xr-x 3 root wheel 102 Jan 15 15:00 Toolchains
drwxr-xr-x 18 root wheel 612 Apr 11 16:46 Tools
drwxr-xr-x 7 root wheel 238 Apr 11 16:46 usr
(well the dates and times may be different)
If it doesn’t, then you might need to run:
xcode-select -s /Applications/Xcode.app/Contents/Developer
Rob