5

I'm using React Native Firebase. At firebase crashlytics I have missing DSYM's. enter image description here

What's the right way to add dSYMs automatically on every build? I guess it should be added to run script? If so, how can I get the path to /path/to/pods/directory/FirebaseCrashlytics/upload-symbols and /path/to/dSYMs.

Thanks!

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
lecham
  • 2,294
  • 6
  • 22
  • 41
  • 1
    same problem I am facing, @Iecham have you find the correct script which will work everytime whenever i make a release build for providng QA or client for testing? Note: I do not wan app store solution, my app is not published yet. – Himani Sharma Jun 03 '20 at 11:23
  • I couldn't find a way to do it automatically, But here is what I'm doing right now https://gist.github.com/medyo/43a76da1c4cc5aae0eaaa1a16bb9ae97 – Mehdi Sakout Dec 15 '20 at 11:36

1 Answers1

7

This question has been answered in previous posts, but I'll provide a quick summary. The paths below will automatically find your dSYMs and upload them.

Here is what goes into your runscript:

"${PODS_ROOT}/FirebaseCrashlytics/run"

This is what goes into your input file:

${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}

You can use this terminal command to find the correct paths to your dSYMs:

mdfind "com_apple_xcode_dsym_uuids == UUID"

You can use the below post as a reference:

Firebase Crashlytics DSYM file.

Jake Cronin
  • 1,002
  • 13
  • 15
Oleg Kodysh
  • 986
  • 6
  • 13
  • Thanks! Is this command similar to those 2 which are specified by firebase on a screenshot? – lecham May 31 '20 at 10:31
  • That screenshot references how you can manually upload optional missing dSYM's using the upload script, if the Crashlytics runscript provided isn't working for whatever reason. There's a little more information on this here: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=ios#upload-dsyms – Oleg Kodysh Jun 01 '20 at 14:01
  • ${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}. how to and where i have to use this comman, i am unable to understand. please help @OlegKodysh – Himani Sharma Jun 03 '20 at 11:31
  • @HimaniSharma, that path is for the "Input files" field under "Run script" in Xcode, in the Build Phases section. It points to where Xcode generates your dSYMs so that the run script can automatically send them over to Firebase to symbolicate your crash reports. – Oleg Kodysh Jun 03 '20 at 13:42
  • Hello @Jake Cronin, I have used Package manager for firebase crashanalytics but dSYM file is not upload – user3318703 Jun 22 '23 at 16:03