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