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