We have xcode 8 and 9 installed and have run xcode-select to set the default version for the command line tools. In the terminal, I can run
xcodebuild -version
OR
xcode-select -p
and each of them show that the correct version (xcode 9) is selected. However when I open xcode and check Preferences -> Locations it shows no value in the drop down to select the default version for the CLT.
Here's a screenshot showing both the terminal window display and the preferences in xcode.
Any idea why this might be happening?