iosfirebasefluttercrashlytics

How to upload dsyms files which developed with Flutter?


I am developing one Cross-platform app with flutter support. I Integrated firebase Crashlytics for crash reports. before I need to check report one error message comes

Upload 1 missing dSYM required to process 4 crashes

for that, I tried firebase docs

Get deobfuscated crash reports

also, I followed steps to build iOS Archive with flutter

Preparing an iOS App for Release

Still, There is the same issue on firebase portal

Upload 1 missing dSYM required to process 4 crashes

I tried this many times but still not done yet.

If someone has Idea then please help me to fix this issue.

Thanks, Community


Solution

  • Let your Xcode upload it automatically when you run/build your app.

    I. Open Xcode > Targets > MyProjectName > Build phases

    Add two scripts (using + sign) consisting of each of these

    1. "${PODS_ROOT}/FirebaseCrashlytics/run"

    2. "${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" -gsp "${PROJECT_DIR}/MyProjectName/GoogleService-Info.plist" -p ios "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"

    Important: Make sure to replace MyProjectName with your project name but leave rest as it is.

    II. Also make sure to check these options in Targets > MyProjectName > Build settings

    Set Debug information format to DWARF with dSYM file

    III. Visuals enter image description here enter image description here enter image description here enter image description here