From 1cf972d36ff4ff5a39b2a22c80fad3dd955a98aa Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 11 Nov 2020 22:29:05 +0100 Subject: [PATCH] Override min SDK for Apple Silicon - iPhoneSimulator ARM64 = 13.0 - macOS ARM64 = 11.0 Would cause compiler warnings otherwise. --- scripts/build-loop-targets.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build-loop-targets.sh b/scripts/build-loop-targets.sh index 36db9d3..4622df0 100755 --- a/scripts/build-loop-targets.sh +++ b/scripts/build-loop-targets.sh @@ -46,6 +46,9 @@ do # Determine platform if [[ "${TARGET}" == "macos"* ]]; then PLATFORM="MacOSX" + if [[ "${TARGET}" == "macos64-arm64" ]]; then + MACOS_MIN_SDK_VERSION="11.0" + fi elif [[ "${TARGET}" == "mac-catalyst-"* ]]; then PLATFORM="MacOSX" elif [[ "${TARGET}" == "watchos-sim-cross"* ]]; then @@ -58,6 +61,9 @@ do PLATFORM="AppleTVOS" elif [[ "${TARGET}" == "ios-sim-cross-"* ]]; then PLATFORM="iPhoneSimulator" + if [[ "${TARGET}" == "ios-sim-cross-arm64" ]]; then + IOS_MIN_SDK_VERSION="13.0" + fi else PLATFORM="iPhoneOS" fi