Firebase Crashlytics: Upload missing dSYMs to see

2019-06-15 08:16发布

Error Message: Upload missing dSYMs to see crashes from 1 versions. Versions affected: 1.0 (1)

I am trying to implement Firebase Crashlytics in my iOS project. I did all the setups according to Firebase Crashlytics Doucmentation. The crash is performed manually when the button is clicked just to see whether the crashlytics is working.

@IBAction func onTestCrashButtonClick(_ sender: UIButton) {

    Crashlytics.sharedInstance().crash()

}

But when i tried to see the error report in the firebase console, it shows something like this image.

enter image description here

After reading Get Deobfuscated crash reports I just Set Debug Information Format to DWARF with dSYM File like below but the problem not fixed till now. enter image description here

3条回答
三岁会撩人
2楼-- · 2019-06-15 08:48

If you are using the dynamic library is your project using cocoa pods or any other tool then Firebase needs Duplicate Symbol files to locate the faulty code in your library. If you want to read more about dSysms read this : https://stackoverflow.com/questions/3656391/whats-the-dsym-and-how-to-use-it-ios-sdk

To find dsysm folder, you first need the .ipa file on which crash was reported on your firebase. In your case, I suppose you are running on the simulator for testing. To get IPA follow these steps: How to create ipa in xcode 6 without Apple Developer account?

When you reach .iPA then right click and select show package contents, or follow this link: iphone: Where the .dSYM file is located in crash report

There you will find system folder. Upload this folder to firebase crashalytics.

Hope this helps!

查看更多
一夜七次
3楼-- · 2019-06-15 09:02

I have been having this same issue for a while and I was finally able to resolve it, thought I would share what worked for me:

For context, I am working on a larger app which uses several Cocoapods.

I found that same red banner on my Firebase Crashlytics page and after following all of their instructions I was still seeing it.

I tried the "archive/find .dSYMs/upload manually via terminal" solution several times to no avail.

Finally, I decided to download the .dSYMs from iTunesConnect.
[Your App] > Activity > [Desired Build Number] > Download dSYM

I then uploaded those .dSYMs manually and within minutes Firebase Crashlytics was happy and showing the crash reports.

UPDATE
Google has added a swanky .dSYM upload feature on the Firebase Crashlytics dashboard, no more uploading from the terminal.

查看更多
Luminary・发光体
4楼-- · 2019-06-15 09:03

In my case, I have done the following things and it worked:

  1. Select 'Run script only when installing' in Build Phases -> Run Script (Shell = ${PODS_ROOT}/Fabric/run)

  2. Build the app

  3. Now you can find the .dsym file in the path, /Library/Developer/Xcode/DerivedData/XXX-arctjcalvfslmbakanpyivuuxjmm/Build/Products/Release-iphoneos

  4. Upload the zipped .dsym file to firebase console

  5. After few minutes, you can find the crash reports

NOTE:

  • I have disabled bitcode while exporting ipa file (Adhoc or Appstore)
  • If you need ipa with bitcode enabled, then download dsym file from iTunes connect
查看更多
登录 后发表回答