Xcode: How to upload dSYM to Firebase Crashlytics

How to upload dSYM files to Firebase Crashlytics in Xcode

Have you faced the missing dSYM issue? You can fix it by uploading dSYM to firebase.

Official Document

Build Setting – Build Options

Check DWARD with dSYM File

screenshot 2023 12 20 at 6.18.32e280afpm

Reorder Build Phase in Xcode

screenshot 2023 12 20 at 5.55.13e280afpm 1

Edit Run Script

screenshot 2023 12 20 at 6.00.44e280afpm
"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run"

Add above command into Run Script

Add Input Files

screenshot 2023 12 20 at 6.00.58e280afpm
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${PRODUCT_NAME}
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist
$(TARGET_BUILD_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/GoogleService-Info.plist
$(TARGET_BUILD_DIR)/$(EXECUTABLE_PATH)

Tap + button at Input Files and Add above paths one by one

Check dSYM

screenshot 2023 12 20 at 6.11.38e280afpm

You can see uploading dsym process in All Messages

screenshot 2023 12 20 at 6.13.30e280afpm

Let’s check firebase Crashlytics.

Crashlytics -> dSYMs

You can see Uploaded

  • There is a minor issue which is Uploaded dSYM’s version is indicating Unknown

Conclusion

screenshot 2023 12 21 at 8.07.39e280afam

Now I able to see all the crash issue after uploading dSYM (see above screenshot).

Comments

Leave a Reply

Discover more from Shawn

Subscribe now to keep reading and get access to the full archive.

Continue reading