From df6ea27ab331d2bb4011b00c48d578c08644c2d2 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 21 Oct 2020 07:56:05 +0300 Subject: [PATCH] [3.2] Disable iOS SDK version check on osxcross. Currently, osxcross `xcrun` supports only macOS SDKs. --- platform/iphone/detect.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py index 37c4a5b985..adb62f86ef 100644 --- a/platform/iphone/detect.py +++ b/platform/iphone/detect.py @@ -13,11 +13,13 @@ def get_name(): def can_build(): - if sys.platform == "darwin" or ("OSXCROSS_IOS" in os.environ): + if sys.platform == "darwin": if get_darwin_sdk_version("iphone") < 13.0: print("Detected iOS SDK version older than 13") return False return True + elif "OSXCROSS_IOS" in os.environ: + return True return False