crashlytics不会受到Umeng SDK影响的异常崩溃

时间:2015-02-13 05:47:43

标签: ios crashlytics

我正在调试一个错误,如果我的应用程序遇到由某些异常引起的崩溃,但崩解不能得到它。我打开了crashlytics调试模式,在我崩溃我的应用程序并将其连接到Xcode后发现,crashlytics说没有文件要发送。

但如果我使用[[Crashlytics sharedInstance]崩溃];我将收到报告,并且在Xcode中打印出崩溃文件说发送文件。

我在网上看到了

"请记住,异常不能保证崩溃。 (完整的代码路径,包括系统库中的代码在这里很重要。)“

但是我相信crashlytics应该能够抓住我的崩溃,它确实崩溃了,但是崩解剂没有找到文件。我做错了什么?

日志:

2015-02-13 13:34:11.344 Compass[1589:277586] [Crashlytics] Settings loaded
2015-02-13 13:34:11.351 Compass[1589:277586] [Crashlytics] Configuring application
2015-02-13 13:34:11.352 Compass[1589:277586] [Crashlytics] Starting report processing in 1.0 second(s)...
2015-02-13 13:34:12.451 Compass[1589:277587] [Crashlytics] Alternate file submission complete
2015-02-13 13:34:12.453 Compass[1589:277587] [Crashlytics] No prepared files found
2015-02-13 13:34:12.454 Compass[1589:277587] [Crashlytics] No sendable files, submission process complete
2015-02-13 13:34:13.272 Compass[1589:277585] [Crashlytics] Configured application

与[[Crashlytics sharedInstance]崩溃]相比:

2015-02-13 15:36:11.716 Compass[1634:288568] [Crashlytics] Processed file successfully
2015-02-13 15:36:11.717 Compass[1634:288568] [Crashlytics] Alternate file submission complete
2015-02-13 15:36:11.718 Compass[1634:288568] [Crashlytics] Submitting files
2015-02-13 15:36:13.750 Compass[1634:288561] [Crashlytics] Submission response: {status: 202, error: (null)}
2015-02-13 15:36:13.751 Compass[1634:288561] [Crashlytics] Submitted crash report with file name: "54dda95f01cf0001065d333333376237.cls", request-id: <none received>
2015-02-13 15:36:13.752 Compass[1634:288569] [Crashlytics] Submitted file successfully
2015-02-13 15:36:13.754 Compass[1634:288569] [Crashlytics] No sendable files, submission process complete

并且崩溃论者没有报告我缺少dSYMs:

耶!我们不会错过任何有影响力的dSYM

1 个答案:

答案 0 :(得分:1)

Crashlytics永远不会发送处理异常的报告。 如果您正在使用try-catch块,则在catch块中添加以下行

@try {
// your code here
}
@catch (NSException *exception) {
NSUncaughtExceptionHandler *handler = NSGetUncaughtExceptionHandler();
handler(exception);
}