From c11fe483947c95553610ab59210af643f031f5f4 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Sat, 10 Aug 2024 09:20:57 -0700 Subject: [PATCH] [iOS] Do not archive/upload Flutter.dSYM to cloud (#54492) As of the following three patches, we now bundle Flutter.framework.dSYM as part of Flutter.xcframework and bundle them in the .xcarchive bundles produced by `flutter build ipa` / Xcode Product > Archive for upload to the iOS App Store. * https://github.com/flutter/engine/pull/54414 * https://github.com/flutter/engine/pull/54458 * https://github.com/flutter/flutter/pull/153215 The .dSYM bundle is now available both in the uploaded .xcarchive and in the xcframework in Flutter's internal artifact cache. For developers with CI toolchains that do additional manual handling or local archiving of .dSYMs, the dSYMs no longer need to be downloaded from cloud storage as previously detailed in `docs/Crashes.md`, but can instead be copied up from the appropriate dSYM subdirectory in the framework cache: * `flutter/bin/cache/artifacts/engine/ios-release/Flutter.xcframework` Issue: https://github.com/flutter/flutter/issues/116493 Credo: [Embrace the yak shave](https://suno.com/song/37cb7c43-85ad-40f2-87e6-9aec7baa0419) [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- ci/builders/mac_ios_engine.json | 10 ---------- sky/tools/create_full_ios_framework.py | 20 -------------------- 2 files changed, 30 deletions(-) diff --git a/ci/builders/mac_ios_engine.json b/ci/builders/mac_ios_engine.json index 11d1774e1ba3e..7f83aa1437b3d 100644 --- a/ci/builders/mac_ios_engine.json +++ b/ci/builders/mac_ios_engine.json @@ -540,16 +540,6 @@ "source": "out/release/artifacts.zip", "destination": "ios-release/artifacts.zip", "realm": "production" - }, - { - "source": "out/release/Flutter.dSYM.zip", - "destination": "ios-release/Flutter.dSYM.zip", - "realm": "production" - }, - { - "source": "out/release/extension_safe_Flutter.dSYM.zip", - "destination": "ios-release/extension_safe_Flutter.dSYM.zip", - "realm": "production" } ] } diff --git a/sky/tools/create_full_ios_framework.py b/sky/tools/create_full_ios_framework.py index edef7ee89d704..7f43b4a7fe464 100644 --- a/sky/tools/create_full_ios_framework.py +++ b/sky/tools/create_full_ios_framework.py @@ -219,26 +219,6 @@ def zip_archive(dst): ], cwd=dst) - # Generate Flutter.dSYM.zip for manual symbolification. - # - # Historically, the framework dSYM was named Flutter.dSYM, so in order to - # remain backward-compatible with existing instructions in docs/Crashes.md - # and existing tooling such as dart-lang/dart_ci, we rename back to that name - # - # TODO(cbracken): remove these archives and the upload steps once we bundle - # dSYMs in app archives. https://github.com/flutter/flutter/issues/116493 - framework_dsym = os.path.join(dst, 'Flutter.framework.dSYM') - if os.path.exists(framework_dsym): - renamed_dsym = framework_dsym.replace('Flutter.framework.dSYM', 'Flutter.dSYM') - os.rename(framework_dsym, renamed_dsym) - subprocess.check_call(['zip', '-r', 'Flutter.dSYM.zip', 'Flutter.dSYM'], cwd=dst) - - extension_safe_dsym = os.path.join(dst, 'extension_safe', 'Flutter.framework.dSYM') - if os.path.exists(extension_safe_dsym): - renamed_dsym = extension_safe_dsym.replace('Flutter.framework.dSYM', 'Flutter.dSYM') - os.rename(extension_safe_dsym, renamed_dsym) - subprocess.check_call(['zip', '-r', 'extension_safe_Flutter.dSYM.zip', 'Flutter.dSYM'], cwd=dst) - def process_framework(args, dst, framework_binary, dsym): if dsym: