Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 从Crashlytics 3.0.0开始,实现用户提示是应用程序&x27;责任_Ios_Objective C_Crashlytics - Fatal编程技术网

Ios 从Crashlytics 3.0.0开始,实现用户提示是应用程序&x27;责任

Ios 从Crashlytics 3.0.0开始,实现用户提示是应用程序&x27;责任,ios,objective-c,crashlytics,Ios,Objective C,Crashlytics,我收到以下警告: [Crashlytics:Crash]警告:用户提示功能已启用。截至 Crashlytics 3.0.0,实现用户提示是应用程序的主要功能 责任。参见Crashlytics.h关于 -crashlyticsDidDetectReportForLastExecution:completionHandler: 在我使用Xcode运行应用程序时出现在应用程序日志中。看起来我使用的Crashlytics版本是3.0.8(来自Crashlytics.framework中的info.pli

我收到以下警告:

[Crashlytics:Crash]警告:用户提示功能已启用。截至 Crashlytics 3.0.0,实现用户提示是应用程序的主要功能 责任。参见Crashlytics.h关于 -crashlyticsDidDetectReportForLastExecution:completionHandler:

在我使用Xcode运行应用程序时出现在应用程序日志中。看起来我使用的Crashlytics版本是3.0.8(来自Crashlytics.framework中的info.plist文件)

以下是Crashlytics.h文件中的相关文档:

/**
 *
 * Called when a Crashlytics instance has determined that the last execution of the
 * application ended in a crash.  This is called synchronously on Crashlytics
 * initialization. Your delegate must invoke the completionHandler, but does not need to do so 
 * synchronously, or even on the main thread. Invoking completionHandler with NO will cause the
 * detected report to be deleted and not submitted to Crashlytics. This is useful for
 * implementing permission prompts, or other more-complex forms of logic around submitting crashes.
 *
 * Failure to invoke the completionHandler will prevent submissions from being reported. Watch out.
 * 
 * Just implementing this delegate method will disable all forms of synchronous report submission. This can
 * impact the reliability of reporting crashes very early in application launch.
 *
 **/

- (void)crashlyticsDidDetectReportForLastExecution:(CLSReport *)report completionHandler:(void (^)(BOOL submit))completionHandler;
从警告来看,我的应用程序中似乎不会出现通常的“发送崩溃报告”提示。然而,我在撞车后得到了这个。也就是说,我似乎没有必要实现这个UI。那么,有什么好处呢?这个警告是否真的是一个错误的警告,即我们将来必须为这个发送崩溃报告提示符创建自己的UI

我也看过医生 及 但是找不到任何关于3.0.0以来变化的话题


想法?

这里是布料公司的迈克

在SDK 3.0中,我们对如何处理崩溃报告提交添加了更细粒度的控制,以便您和其他开发人员可以按照自己的意愿显示警报。如果要实现自己的对话框,请关闭Fabric dashboard中的隐私对话框,然后使用提供的调用来实现

如果您想继续使用Fabric提供的隐私对话框,可以,但我鼓励您创建一个新的,因为它更灵活,可以根据应用程序的UI进行自定义

好的,谢谢你的快速回复,迈克!