Kinda Code
Home/Xcode/Check if Xcode is installed on Mac via Command Line

Check if Xcode is installed on Mac via Command Line

Last updated: February 23, 2022

Xcode is an integrated development environment (IDE) that is comprised of software development tools and libraries from Apple. In order to check whether Xcode is already installed on your Mac, in the Terminal window, run:

xcode-select -p

If Xcode is installed, you will see the following output:

/Applications/Xcode.app/Contents/Developer

Or:

/Library/Developer/CommandLineTools

If Xcode isn’t installed, you’ll receive an error.

Further reading:

Have a nice day and happy coding.