I know that in order to get xcode install directory from command line I have to use xcode-select -print-path. The result is something like: /Applications/Xcod
xcode-select -print-path
/Applications/Xcod
To be more precise,
xcrun --sdk macosx --show-sdk-path