What Version of XCode do I have?

To find what version you have without launching Xcode…

  • Launch the Terminal app
  • Execute the following shell command:

Update for MacOS Mojave

1
$ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -version

If you have it:

1
2
Xcode 10.2.1
Build version 10E1001

If you don’t:

1
 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild: No such file or directory

Legacy

1
$ /Developer/usr/bin/xcodebuild -version

If you have it:

1
2
Xcode 4.2
Build version 4D199

If you don’t:

1
/Developer/usr/bin/xcodebuild: No such file or directory
%d bloggers like this: