Always embed Flutter.framework build mode version from Xcode configuration (#42029)

This commit is contained in:
Jenn Magder
2019-10-15 15:33:55 -07:00
committed by GitHub
parent ad1d67e0a1
commit 357d02c87b
20 changed files with 424 additions and 210 deletions

View File

@@ -146,6 +146,7 @@ BuildApp() {
RunCommand find "${derived_dir}/engine/Flutter.framework" -type f \( -name '*.h' -o -name '*.modulemap' -o -name '*.plist' \) -exec chmod a-w "{}" \;
else
RunCommand rm -rf -- "${derived_dir}/Flutter.framework"
RunCommand cp -- "${flutter_podspec}" "${derived_dir}"
RunCommand cp -r -- "${flutter_framework}" "${derived_dir}"
# Make headers, plists, and modulemap files read-only to discourage editing.
RunCommand find "${derived_dir}/Flutter.framework" -type f \( -name '*.h' -o -name '*.modulemap' -o -name '*.plist' \) -exec chmod a-w "{}" \;