"xcode-select -print-path" is reporting that the active developer directory is currently "/Library/Developer/CommandLineTools":
... Executing command 'xcode-select -print-path' ...Yes ('/Library/Developer/CommandLineTools').
This should be changed to the location of the Xcode.app in Applications, by using the "xcode-select" command from macOS Terminal:
sudo xcode-select -s /Applications/Xcode.app
Where "/Applications/XCode.app" is the location of your XCode 9 application. This command will require an administrator password.
Best Answer