Merge pull request #43091 from bruvzg/ios_ver_check_no_except

[3.2] Do not raise exception if iOS SDK is not installed.
This commit is contained in:
Rémi Verschelde 2020-10-26 14:28:41 +01:00 committed by GitHub
commit 078c632592
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ def get_darwin_sdk_version(platform):
return float(decode_utf8(subprocess.check_output(["xcrun", "--sdk", sdk_name, "--show-sdk-version"]).strip())) return float(decode_utf8(subprocess.check_output(["xcrun", "--sdk", sdk_name, "--show-sdk-version"]).strip()))
except (subprocess.CalledProcessError, OSError): except (subprocess.CalledProcessError, OSError):
print("Failed to find SDK version while running xcrun --sdk {} --show-sdk-version.".format(sdk_name)) print("Failed to find SDK version while running xcrun --sdk {} --show-sdk-version.".format(sdk_name))
raise return 0.0
def detect_darwin_sdk_path(platform, env): def detect_darwin_sdk_path(platform, env):