Crashlytics record error

纵然是瞬间 提交于 2019-12-10 12:58:58

问题


I am recording an error using Crashlytics for iOS.

NSDictionary *detail = @{@"message":errorWithURL, @"response":jsonString};
[[Crashlytics sharedInstance] recordError:[NSError errorWithDomain:@"send request" code:0 userInfo:detail]];

But I do not see the message in Crashlytics console.

See here.

Am I doing something wrong here?


回答1:


From Fabric Docs - "Data contained within the userInfo object are converted to key-value pairs and displayed in the keys/logs section within an individual issue."

So press "View all sessions" button upper right corner, then go to keys/logs section on top of the page

https://docs.fabric.io/apple/crashlytics/logged-errors.html#using-the-api




回答2:


Please check if you uploaded DSYM file with your build. If the DSYM file was supposed to be uploaded via a Fastlane job, then the upload might have failed.



来源:https://stackoverflow.com/questions/45081139/crashlytics-record-error

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