The screenshot you provided only tests the installation of Command Line Tools, which sit in /Library/Developer/CommandLineTools. However, some software requires the full Xcode app to work or install properly.
xcode-select -p tells you where the compiler looks for packages. If this shows /Library/Developer/CommandLineTools and your software installs correctly without issues, you likely don't need the full app. But if the software requires it, you need to install the Xcode App from the App Store or the website and update the path using:
sudo xcode-select -r
which resets it, or
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
with the appropriate path to your Xcode.app.
Your test, /usr/bin/xcodebuild -version, highlights this issue. On my Mac with the Xcode app installed, it shows:
Xcode 10.3
Build version 10G8
So follow these instructions:
- Download an older version of Xcode to get the Xcode app.
- Move it to the appropriate place.
- Run the path switching command with the correct path to Xcode.
- Proceed with the installation.
@jmh: "X-code V 10.1 is the latest version of X-Code for High Sierra."
OP: "Link to Xcode 10.1"