From e6952e835b743490dc8be65898a538591f244069 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Thu, 21 Jul 2022 17:11:10 +0300 Subject: [PATCH] don't build for ARM simulator with Xcode < 12 --- boost.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boost.sh b/boost.sh index aa05571e..a26adc08 100755 --- a/boost.sh +++ b/boost.sh @@ -614,6 +614,10 @@ parseArgs() IOS_SIM_ARCHS=("x86_64" "arm64") fi fi + # ARM simulator is supported only from Xcode 12 + if [[ "$(version "$XCODE_VERSION")" -lt "$(version "12.0")" && "${IOS_SIM_ARCHS[${#IOS_SIM_ARCHS[@]}-1]}" == arm64 ]]; then + unset IOS_SIM_ARCHS[${#IOS_SIM_ARCHS[@]}-1] + fi } doneSection()