From f66c0b7d91f3fba6a8febdf943b28e072bc95370 Mon Sep 17 00:00:00 2001 From: Ted Spikes Date: Sun, 11 Sep 2022 09:21:41 +0000 Subject: [PATCH] Check for ios_simulator when building for x86_64 (cherry picked from commit 21f7bd0723be5ca594547074d01dd92e5bf35e9c) --- platform/iphone/detect.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py index acebb9814..4652f4772 100644 --- a/platform/iphone/detect.py +++ b/platform/iphone/detect.py @@ -129,6 +129,10 @@ def configure(env): env.Append(LINKFLAGS=["-miphoneos-version-min=10.0"]) if env["arch"] == "x86" or env["arch"] == "x86_64": + if not env["ios_simulator"]: + print("ERROR: Building for iOS with 'arch=x86_64' or 'arch=x86' requires 'ios_simulator=yes'.") + sys.exit(255) + env["ENV"]["MACOSX_DEPLOYMENT_TARGET"] = "10.9" arch_flag = "i386" if env["arch"] == "x86" else env["arch"] env.Append(