Fix the chmod step: find needs -L to follow the Nix symlink farm

Confirmed via CI diagnostics: the resolved Flutter root
(flutter-wrapped-*-sdk-links) is a symlink farm, and plain find -type d
doesn't follow directory symlinks, so it silently matched zero
frameworks. Reproduced and verified the fix locally.
This commit is contained in:
Erwan Leboucher 2026-08-09 00:28:37 +02:00
commit b66d8d57b5
Signed by: eleboucher
SSH key fingerprint: SHA256:fjyYE6Mo6r2wpEtyYKFfGpX8fmR9bjL0NxWBHosnOgk
2 changed files with 6 additions and 6 deletions

View file

@ -35,9 +35,9 @@ jobs:
echo "lipo resolves to: $(command -v lipo)" echo "lipo resolves to: $(command -v lipo)"
FLUTTER_ROOT="$(dirname "$(dirname "$(readlink -f "$(command -v flutter)")")")" FLUTTER_ROOT="$(dirname "$(dirname "$(readlink -f "$(command -v flutter)")")")"
echo "Resolved Flutter root: $FLUTTER_ROOT" echo "Resolved Flutter root: $FLUTTER_ROOT"
find "$FLUTTER_ROOT" -type d -iname "*.framework" -print find -L "$FLUTTER_ROOT" -type d -iname "*.framework" -print
find "$FLUTTER_ROOT" -type d -iname "*.framework" -exec chmod -R u+w {} + 2>&1 || true find -L "$FLUTTER_ROOT" -type d -iname "*.framework" -exec chmod -R u+w {} + 2>&1 || true
find "$FLUTTER_ROOT" -type d -iname "*.framework" -exec ls -ld {} \; find -L "$FLUTTER_ROOT" -type d -iname "*.framework" -exec ls -ld {} \;
flutter build ios --release --no-codesign flutter build ios --release --no-codesign
' '

View file

@ -35,9 +35,9 @@ jobs:
echo "lipo resolves to: $(command -v lipo)" echo "lipo resolves to: $(command -v lipo)"
FLUTTER_ROOT="$(dirname "$(dirname "$(readlink -f "$(command -v flutter)")")")" FLUTTER_ROOT="$(dirname "$(dirname "$(readlink -f "$(command -v flutter)")")")"
echo "Resolved Flutter root: $FLUTTER_ROOT" echo "Resolved Flutter root: $FLUTTER_ROOT"
find "$FLUTTER_ROOT" -type d -iname "*.framework" -print find -L "$FLUTTER_ROOT" -type d -iname "*.framework" -print
find "$FLUTTER_ROOT" -type d -iname "*.framework" -exec chmod -R u+w {} + 2>&1 || true find -L "$FLUTTER_ROOT" -type d -iname "*.framework" -exec chmod -R u+w {} + 2>&1 || true
find "$FLUTTER_ROOT" -type d -iname "*.framework" -exec ls -ld {} \; find -L "$FLUTTER_ROOT" -type d -iname "*.framework" -exec ls -ld {} \;
flutter build macos --release flutter build macos --release
' '