fix: adapt Flutter architecture verification for Xcode 27

Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-10-12 12:46:02 -07:00
parent 693fc6bd8a
commit 6963d612b5
4 changed files with 21 additions and 0 deletions

13
scripts/apple-tools/lipo Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Flutter 3.41 passes multiple architectures to -verify_arch. Xcode 27's
# lipo accepts only one at a time. Preserve the all-architectures requirement.
set -euo pipefail
if [[ $# -ge 3 && "$2" == -verify_arch ]]; then
binary="$1"
shift 2
for architecture in "$@"; do
xcrun lipo "$binary" -verify_arch "$architecture"
done
else
exec xcrun lipo "$@"
fi