From 10675af5a67bd9b753cab54319ec121237e03c88 Mon Sep 17 00:00:00 2001 From: native-api Date: Thu, 14 Aug 2025 22:40:54 +0300 Subject: [PATCH] Don't fail the build if `xcodebuild` fails (#3302) --- plugins/python-build/bin/python-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 60ace186..46151314 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1831,7 +1831,7 @@ use_xcode_sdk_zlib() { [[ "${CC:-clang}" != "clang" || "$(command -v clang 2>/dev/null || true)" != "/usr/bin/clang" ]] && return 1 # The flags set by this function break the build in XCode 16 due to unknown changes from XCode 15 # For future-proofing, also disable it if we cannot determine the version - [[ $(xcodebuild -version) =~ ^Xcode\ ([[:digit:]]+) ]] && xcode_major="${BASH_REMATCH[1]}" + [[ $(xcodebuild -version 2>/dev/null || true) =~ ^Xcode\ ([[:digit:]]+) ]] && xcode_major="${BASH_REMATCH[1]}" [[ -z $xcode_major || $xcode_major -ge 16 ]] && return 1 local xc_sdk_path="$(xcrun --show-sdk-path 2>/dev/null || true)" if [ -d "$xc_sdk_path" ]; then