Open xcodereleases opened 6 years ago
This info is cataloged on wikipedia. Based on this SO post, it sounds like you could find it automatically.
However, I'm not convinced that post is quite correct since the versions I'm getting are lower than what's cataloged.
$ otool -l /Applications/Xcode-8.3.3.app/Contents/MacOS/Xcode | grep -A 3 LC_VERSION_MIN_MACOSX cmd LC_VERSION_MIN_MACOSX cmdsize 16 version 10.11 sdk 10.12
$ otool -l /Applications/Xcode-9.2.app/Contents/MacOS/Xcode | grep -A 3 LC_VERSION_MIN_MACOSX cmd LC_VERSION_MIN_MACOSX cmdsize 16 version 10.12.1 sdk 10.13
$ otool -l /Applications/Xcode-9.3.app/Contents/MacOS/Xcode | grep -A 3 LC_VERSION_MIN_MACOSX cmd LC_VERSION_MIN_MACOSX cmdsize 16 version 10.12.1 sdk 10.13
This info is cataloged on wikipedia. Based on this SO post, it sounds like you could find it automatically.
However, I'm not convinced that post is quite correct since the versions I'm getting are lower than what's cataloged.
Xcode 8.3.3
Xcode 9.2
Xcode 9.3