[bug]: (Pub workspaces & Melos) dSYM upload fails | uploadDebugSymbols = false
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inizia da addFlutterFireDebugSymbolsScript in packages/flutterfire_cli/lib/src/firebase/firebase_apple_writes.dart e traccia il modo in cui individua package_config.json e legge pubspec.yaml. Riproduci la struttura del workspace con l’app in ./apps/name e firebase_crashlytics in un package interno. Il lavoro è completo quando la CLI rileva la dipendenza, genera lo script della build phase e non imposta uploadDebugSymbols su false in firebase.json.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues.
CLI Version
1.2.0
Firebase Tools version
13.28.0
Flutter Doctor Output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.32.0, on macOS 15.5 24F74 darwin-arm64, locale en-ES)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] VS Code (version 1.100.3)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
Description
I'm not adding the full flutter doctor -v output as I believe it's not relevant for this issue.
Please, let me know otherwise.
Regardless if I stated on the title "Pub workspaces", this would also occur just using old Melos version or with any other project structure that varies from default.
Going straight to the point:
The function addFlutterFireDebugSymbolsScript at packages/flutterfire_cli/lib/src/firebase/firebase_apple_writes.dart is unable to find firebase_crashlytics dependency on a different project structure than the usual one.
Details:
With the recently introduced "Pub workspaces", .dart_tool/package_config.json resides at the root of the project, which is not the flutterAppPath.
For instance, we have the main app at ./apps/name as recommended by Melos or Pub dev if I'm not wrong.
Despite the fact that addFlutterFireDebugSymbolsScript tries to find the dependency also in the "main app" pubspec.yaml, the firebase_crashlytics dependency might not be there, as following a typical "workspace" structure, the developer could have delegated all that logic to an internal package at ./packages/[name].
This is exactly our case, so ultimately, since no firebase_crashlytics dependency was found, uploadDebugSymbols is being set as false in the "main app" firebase.json file.
Additionally to that, the build phase script is also not generated.
Current fix:
We just added firebase_crashlytics dependency back to our "main app" pubspec.yaml, which is now redundant.
Potential fix:
Instead of looking up for package_config.json or trying to figure out if the project follows a "workspace" structure, I recommend that the CLI simply provides a new option such as --app-dir.
This way, we can just run flutterfire configure / reconfigure from the root.
Steps to reproduce
As explained above.
Expected behavior
The CLI should detect the firebase_crashlytics dependency.
Screenshots
No response
Additional context and comments
This issue, closed by the OP, pointed me to the right direction.
- Lingua principale
- Dart
- Stelle
- 194
- Fork
- 74
- Merge medio
- 1g 22h
- PR unite (30g)
- 6
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di invertase/flutterfire_cli
-
request: usage as packgeApertaNeeds Attention Stale triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
invertase/flutterfire_cli#450 · 5 commenti ·
-
bug Needs Attention triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
invertase/flutterfire_cli#443 · 16 commenti · 12 reazioni ·
-
bug Needs Attention triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 66/100
invertase/flutterfire_cli#428 · 12 commenti · 4 reazioni ·
-
blocked: customer-response bug keep open
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
invertase/flutterfire_cli#353 · 6 commenti ·
-
blocked: customer-response bug keep open triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
invertase/flutterfire_cli#341 · 7 commenti · 1 reazione ·
Tutte le issue di invertase/flutterfire_cli
Issue simili
-
component: genui P2 status: first-line-handled type: bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
a2ui-project/a2ui#2854 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
openfoodfacts/smooth-app#7805 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
googleapis/google-cloud-dart#366 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
hiddify/hiddify-app#2353 ·
-
bug controls
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno