Override min SDK for Apple Silicon

- iPhoneSimulator ARM64 = 13.0
- macOS ARM64 = 11.0

Would cause compiler warnings otherwise.
This commit is contained in:
Davide De Rosa 2020-11-11 22:29:05 +01:00
parent 2d7d115186
commit 1cf972d36f
1 changed files with 6 additions and 0 deletions

View File

@ -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