From 21f7bd0723be5ca594547074d01dd92e5bf35e9c Mon Sep 17 00:00:00 2001 From: Ted Spikes Date: Sun, 11 Sep 2022 09:21:41 +0000 Subject: Check for ios_simulator when building for x86_64 --- platform/ios/detect.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'platform/ios') diff --git a/platform/ios/detect.py b/platform/ios/detect.py index 3cfb25cf61..ed7e714c4e 100644 --- a/platform/ios/detect.py +++ b/platform/ios/detect.py @@ -120,6 +120,10 @@ def configure(env): env.Append(CCFLAGS=["-miphoneos-version-min=11.0"]) if env["arch"] == "x86_64": + if not env["ios_simulator"]: + print("ERROR: Building for iOS with 'arch=x86_64' requires 'ios_simulator=yes'.") + sys.exit(255) + env["ENV"]["MACOSX_DEPLOYMENT_TARGET"] = "10.9" env.Append( CCFLAGS=( -- cgit v1.2.3