Make it possible to ignore Xcode version requirement

This commit is contained in:
Ali 2020-07-17 01:35:56 +04:00
parent 5a23095412
commit eee3c8db73

View File

@ -17,11 +17,14 @@ fi
XCODE_VERSION=$(cat "build-system/xcode_version")
INSTALLED_XCODE_VERSION=$(echo `plutil -p \`xcode-select -p\`/../Info.plist | grep -e CFBundleShortVersionString | sed 's/[^0-9\.]*//g'`)
if [ "$IGNORE_XCODE_VERSION_MISMATCH" = "1" ]; then
XCODE_VERSION="$INSTALLED_XCODE_VERSION"
else
if [ "$INSTALLED_XCODE_VERSION" != "$XCODE_VERSION" ]; then
echo "Xcode $XCODE_VERSION required, $INSTALLED_XCODE_VERSION installed (at $(xcode-select -p))"
exit 1
fi
fi
GEN_DIRECTORY="build-input/gen/project"
mkdir -p "$GEN_DIRECTORY"