在Umeng SDK的影响下,crashlytics不会检测要提交的崩溃文件

时间:2015-02-15 00:51:10

标签: ios

我设置了crashlytics并启用了调试模式,

我试过[[Crashlytics sharedInstance] crash]; 它将有文件提交;

我试过int *x = NULL; *x = 42; 它将有文件提交;

但我试过

NSArray *a = @[@1,@2];
[a objectAtIndex:5];

它没有要提交的文件。 crashlytics生成要提交的文件的条件是什么?我很困惑似乎并不是每次崩溃都会报告。

[a objectAtIndex:5];日志:

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

1 个答案:

答案 0 :(得分:2)

自我回答:

事实证明,另一个名为Umeng的SDK也具有崩溃报告功能,并且它默默地处理所有异常,所以我认为崩解不能得到异常。

我确实禁用了Umeng SDK崩溃报告,但真正的魔力是:

[MobClick setCrashReportEnabled:NO];
[MobClick startWithAppkey:@"Your Key"];

[MobClick setCrashReportEnabled:NO];必须放在startWithAppkey:之前,否则它已经设置。

我为Crashlytics don’t send crash report when there is another crash report (Umeng)

感到高兴