set -e after checking for xcode