[英]Is there any solution for send non fatal crash from ios with crashlytics?
我尝试找到任何解决方案,在iOS上使用crashlytics服务发送非致命异常。 那可能吗? 怎么做到这一点?
https://docs.fabric.io/apple/crashlytics/logged-errors.html
使用API您可以使用此API记录NSError:
[CrashlyticsKit recordError:error];
Crashlytics.sharedInstance().recordError(error)
Crashlytics于2016年1月推出了此功能并发布了此博客文章: https ://www.crashlytics.com/blog/introducing-the-ability-to-log-nserrors
实施细节:
https://docs.fabric.io/ios/crashlytics/logged-errors.html
与Crashlytics为Android提供的内容非常类似,您必须使用try / catch: http : //support.crashlytics.com/knowledgebase/articles/202805-logging-caught-exceptions
Crashlytics还讨论了为什么他们不支持NSException,而是NSError。
回答一个老问题以防万一有人偶然发现它! :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.