forked from Nexus/nexus
parent
c84f0e7e93
commit
7eab09585b
2 changed files with 15 additions and 0 deletions
15
ios/scripts/lipo
Executable file
15
ios/scripts/lipo
Executable file
|
|
@ -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 them 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 "$@"
|
||||
Loading…
Reference in a new issue