Unverified Commit bcc42901 authored by shihchanghsiungsonos's avatar shihchanghsiungsonos Committed by GitHub

Fix xcode_backend.sh to strip bitcode for archive build, if the project has...

Fix xcode_backend.sh to strip bitcode for archive build, if the project has bitcode disabled entirely (#57027)
parent 362a5573
......@@ -288,8 +288,8 @@ EmbedFlutterFrameworks() {
# Copy Xcode behavior and don't copy over headers or modules.
RunCommand rsync -av --delete --filter "- .DS_Store/" --filter "- Headers/" --filter "- Modules/" "${flutter_ios_engine_folder}/Flutter.framework" "${xcode_frameworks_dir}/"
if [[ "$ACTION" != "install" ]]; then
# Strip bitcode from the destination unless archiving.
if [[ "$ACTION" != "install" || "$ENABLE_BITCODE" == "NO" ]]; then
# Strip bitcode from the destination unless archiving, or if bitcode is disabled entirely.
RunCommand "${DT_TOOLCHAIN_DIR}"/usr/bin/bitcode_strip "${flutter_ios_engine_folder}/Flutter.framework/Flutter" -r -o "${xcode_frameworks_dir}/Flutter.framework/Flutter"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment