invertase / flutterfire_cli

A CLI to help with using FlutterFire in your Flutter applications.
Apache License 2.0
164 stars 47 forks source link

fix(apple): upload debug symbols for de-obfuscating Dart stack traces #247

Closed russellwheatley closed 6 months ago

russellwheatley commented 6 months ago

Description

I've tested on two fresh apps using the '--obfuscate' flag. Confirmed that this fixes the Dart stack trace:

Screenshot 2023-12-18 at 12 41 40 Screenshot 2023-12-18 at 12 42 06

also able to see it in the build logs when running: flutter build ios --obfuscate --split-debug-info=./ios-build --verbose | tee build.log

Running upload-symbols in Build Phase mode
           warning: Flutter build with '--obfuscate' enabled. To view deobfuscated stack traces, upgrade to Flutter 3.12.0+ or upload dSYMs manually using the Firebase console web uploader at https://firebase.google.com/project/_/crashlytics
           Validating build environment for Crashlytics...
           Processing dSYMs...
           Successfully submitted symbols for architecture arm64 with UUID dd9d9a4b88a8358eb1b0beea3f1f8800 in dSYM: /Users/russellwheatley/projects/devTests/third_crash_test/build/ios/Release-iphoneos/Runner.app.dSYM
           Successfully submitted symbols for architecture arm64 with UUID 3b985343b91b37e7b78ac3a0cb66459b in dSYM: /Users/russellwheatley/projects/devTests/third_crash_test/build/ios/Release-iphoneos/App.framework.dSYM
           Successfully uploaded Crashlytics build event and symbols
           Running upload-symbols in Build Phase mode
           warning: Flutter build with '--obfuscate' enabled. To view deobfuscated stack traces, upgrade to Flutter 3.12.0+ or upload dSYMs manually using the Firebase console web uploader at https://firebase.google.com/project/_/crashlytics
           Validating build environment for Crashlytics...
           Processing dSYMs...
           Successfully submitted symbols for architecture arm64 with UUID dd9d9a4b88a8358eb1b0beea3f1f8800 in dSYM: /Users/russellwheatley/projects/devTests/third_crash_test/build/ios/Release-iphoneos/Runner.app.dSYM
           Successfully submitted symbols for architecture arm64 with UUID 3b985343b91b37e7b78ac3a0cb66459b in dSYM: /Users/russellwheatley/projects/devTests/third_crash_test/build/ios/Release-iphoneos/App.framework.dSYM
           Successfully uploaded Crashlytics build event and symbols

fix: https://github.com/invertase/flutterfire_cli/issues/246

Type of Change