mirror of
https://github.com/block/buzz.git
synced 2026-11-28 20:22:39 +00:00
fix: adapt Flutter architecture verification for Xcode 27
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
13
scripts/apple-tools/lipo
Executable file
13
scripts/apple-tools/lipo
Executable 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
|
||||
Reference in New Issue
Block a user