Add the Firebase iOS SDK (4.3.0 or higher) or Unity Plugin (6.15.0 or higher), then build, run, and crash your app

杀马特。学长 韩版系。学妹 提交于 2020-12-05 12:28:26

问题


I am trying to integrate with Firebase Crashlytics.

I added the run scripts as described here. then installed the pods:

pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'

I configured the Firebase APIs:

FirebaseApp.configure()

I ran the app. the messages on the console seems to be ok.

But when I open the Crashlytics tab in the firebase console. I only get the message in the question title.

This is what I have in my Podfile.lock:

- Firebase (6.33.0):

回答1:


Add the dSYM to the debug file the Debug mode.

dSYM (Debug Symbolification) is needed to reverse symbolication of the code in crash.

Message states that you need to crash your app. Add the crash code on an event not on an app launch:

fatalError()

Note: Crashes doesn't get reported:

  1. If Xcode is connected to the app.
  2. Its only get reported in the next app launch.

Steps:

  1. Run the app using Xcode.
  2. Disconnect it from Xcode by clicking stop.
  3. Re-launch the App manually.
  4. Crash your app.
  5. Re-launch it so the crash get reported.

Info. gathered from api docs.



来源:https://stackoverflow.com/questions/64146933/add-the-firebase-ios-sdk-4-3-0-or-higher-or-unity-plugin-6-15-0-or-higher-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!