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
The easiest way I found so far is:
xcrun --show-sdk-path