From 7eab09585bd1f56425d87c8d9e95cbecee70dbfd Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 8 Aug 2026 17:51:00 -0400 Subject: [PATCH] Revert "move lipo wrapper" This reverts commit 56dbd91c963e3684ed2f4c4c21e4d6112d69b044. --- {scripts => ios/scripts}/lipo | 0 macos/scripts/lipo | 15 +++++++++++++++ 2 files changed, 15 insertions(+) rename {scripts => ios/scripts}/lipo (100%) create mode 100755 macos/scripts/lipo diff --git a/scripts/lipo b/ios/scripts/lipo similarity index 100% rename from scripts/lipo rename to ios/scripts/lipo diff --git a/macos/scripts/lipo b/macos/scripts/lipo new file mode 100755 index 0000000..9e32655 --- /dev/null +++ b/macos/scripts/lipo @@ -0,0 +1,15 @@ +#!/bin/sh +# Workaround for NixOS/nixpkgs#405066: frameworks copied from the Nix store +# stay read-only, so lipo can't write its temporary output file when Flutter +# thins FlutterMacOS.framework during the build. Make the framework writable +# before delegating to the real lipo. +for arg in "$@"; do + case "$arg" in + */*.framework/*) + fw_dir="${arg%.framework/*}.framework" + chmod -R +w "$fw_dir" 2>/dev/null + ;; + esac +done + +exec /usr/bin/lipo "$@"