how to know if xcode is installed on mac code example Example: check xcode version on mac terminal /usr/bin/xcodebuild -version