Skip to content

Commit e6952e8

Browse files
don't build for ARM simulator with Xcode < 12
1 parent 18d7d5d commit e6952e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

boost.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,10 @@ parseArgs()
614614
IOS_SIM_ARCHS=("x86_64" "arm64")
615615
fi
616616
fi
617+
# ARM simulator is supported only from Xcode 12
618+
if [[ "$(version "$XCODE_VERSION")" -lt "$(version "12.0")" && "${IOS_SIM_ARCHS[${#IOS_SIM_ARCHS[@]}-1]}" == arm64 ]]; then
619+
unset IOS_SIM_ARCHS[${#IOS_SIM_ARCHS[@]}-1]
620+
fi
617621
}
618622

619623
doneSection()

0 commit comments

Comments
 (0)