Check if Xcode is installed on Mac via Command Line

Updated: February 23, 2022 By: A Goodman Post a comment

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.