How can I find out if I have Xcode commandline tools installed? How can I find out if I have Xcode commandline tools installed? xcode xcode

How can I find out if I have Xcode commandline tools installed?


/usr/bin/xcodebuild -version

will give you the xcode version, run it via Terminal command


First of all, be sure that you have downloaded it or not. Open up your terminal application, and enter $ gcc if you have not installed it you will get an alert. You can verify that you have installed it by

$ xcode-select -p/Library/Developer/CommandLineTools

And to be sure then enter $ gcc --version

You can read more about the process here: Xcode command line tools for Mavericks


if you want to know the install version of Xcode as well as Swift language current version:

Use below simple command by using Terminal:

1. To get install Xcode Version

 xcodebuild -version

2. To get install Swift language Version

swift --version