From 6b8f3ff8066dbf13e42f89a2fc713302060b88ca Mon Sep 17 00:00:00 2001 From: Jeppe B <2jepp9350@gmail.com> Date: Mon, 20 Jul 2026 12:37:42 +0200 Subject: [PATCH] Avoid Xcode version broken pipe in iOS debug workflow (#180) Capture the full Xcode version output before selecting its first line so Xcode 26 cannot abort on a closed pipe. --- .github/workflows/ios-device-debug.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ios-device-debug.yml b/.github/workflows/ios-device-debug.yml index 41d695c2..107e2431 100644 --- a/.github/workflows/ios-device-debug.yml +++ b/.github/workflows/ios-device-debug.yml @@ -146,7 +146,8 @@ jobs: shell: bash run: | set -euo pipefail - xcode_version="$(xcodebuild -version | head -n 1)" + xcode_version_output="$(xcodebuild -version)" + IFS= read -r xcode_version <<< "$xcode_version_output" xcode_major="$(awk '{split($2, version, "."); print version[1]}' <<< "$xcode_version")" if [[ ! "$xcode_major" =~ ^[0-9]+$ ]] || (( xcode_major < 26 )); then echo "Xcode 26 or newer is required; found $xcode_version" >&2