Skip to content

Instantly share code, notes, and snippets.

@asus4
Created October 29, 2015 03:09
Show Gist options
  • Save asus4/2fcd724ce06f718640b4 to your computer and use it in GitHub Desktop.
Save asus4/2fcd724ce06f718640b4 to your computer and use it in GitHub Desktop.
Modified https://github.com/Carthage/Carthage/blob/master/script/check-xcode-version Insert this snippet as XCode Build Phase.
# Check Xcode version
require_version="0710"
if [[ $XCODE_VERSION_ACTUAL != $require_version ]]; then
echo "error: Required Xcode $require_version (current $XCODE_VERSION_ACTUAL) to build ${PRODUCT_NAME}"
return -1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment