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