how to check xcode command line version in mac code example Example: check xcode version on mac terminal /usr/bin/xcodebuild -version