diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py index 37c4a5b9850..adb62f86ef0 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