gpt4 book ai didi

iPhone - 检测崩溃,提示用户发送崩溃日志

转载 作者:行者123 更新时间:2023-12-03 19:31:18 24 4
gpt4 key购买 nike

是否有任何库允许最终用户向开发人员发送崩溃报告?

例如,用户正在使用我的应用程序。它崩溃了。启动时,库会先于其他所有内容加载,并注意到有崩溃报告,并提示用户将崩溃日志发送给我。

这可能吗?我认为 Facebook 应用程序就是这样做的。

谢谢!

最佳答案

您实际上可以访问 iTunes Connect 中的崩溃日志。登录,转到“管理您的应用程序”,选择一个应用程序,“查看详细信息”,您应该会在详细信息 Pane 的右侧看到“崩溃报告”链接。

也就是说,Apple 只会每天刷新这些内容,并且只会让您访问最常见崩溃的报告。如果你想要更精细的控制,或者需要用户直接提交报告,可以尝试plcrashreporter 。您可以通过这种方式要求用户提交,或者直接将所有报告自动发送到您的服务器。来自 plcrashreporter 站点:

Introduction

Plausile CrashReporter implements in-process crash reporting on the iPhone and Mac OS X. The following features are supported:

Implemented as an in-process signal handler. Does not interfer with debugging in gdb.. Handles both uncaught Objective-C exceptions and fatal signals (SIGSEGV, SIGBUS, etc). Full thread state for all active threads (backtraces, register dumps) is provided. If your application crashes, a crash report will be written. When the application is next run, you may check for a pending crash report, and submit the report to your own HTTP server, send an e-mail, or even introspect the report locally.

关于iPhone - 检测崩溃,提示用户发送崩溃日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4341381/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com