用户说iOS应用程序崩溃没有任何进一步的解释 [英] Users say that the iOS app crashes without any further explanation

查看:10
本文介绍了用户说iOS应用程序崩溃没有任何进一步的解释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 iTuens 中有一个非常受欢迎的应用程序,用户写了不好的评论,说该应用程序有时会在没有任何原因或解释的情况下崩溃.

I have an app in iTuens which is quite popular and the user are writing bad reviews saying that the app crashed sometimes without any reason or explanation.

我已经在模拟器和真实设备上测试了该应用程序.它对我来说很好,并且 xCode 中也没有内存泄漏.

I have tested the app both on simulator and on a real device. It works fine for me and there are no memory leaks in xCode either.

在这种情况下我可以做些什么来修复崩溃?是否有任何我可以在应用程序中实现的崩溃报告 API,以便用户可以在应用程序中将崩溃日志发送给我?

What can I do in this situation to fix the crash? Is there any crash reporting API that I could implement in the app so that the user can send the crash log to me within the app?

推荐答案

有多种选择,有些是完全开源的,有些是部分开源的,有些是免费的,有些是付费的.

There are multiple options available, some fully open source, some partly, some free, some paid.

iTunes Connect 大多不起作用.原因是:

iTunes Connect mostly doesn't work. The reasons are:

  • 在较旧的 iOS 版本中,人们需要将设备同步到 iTunes,然后将崩溃报告上传到 iTunes Connect.但这些用户在设置设备时必须同意向 Apple 发送匿名使用和诊断数据".大多数人就是不允许这样做.
  • 在较新的 iOS 版本(我认为它始于 iOS 6)中,设备会直接向 iTunes Connect 发送崩溃报告.但同样在这种情况下,用户在设置设备时必须批准发送匿名使用和诊断数据".大多数人只是不允许再次这样做.您可以在 GeneralAbout 下的 Settings 应用程序中检查自己是否允许,然后向下滚动到 Diagnostics &用法.
  • In older iOS Versions, people needed to sync the device to iTunes, which would then upload the crash reports to iTunes Connect. But these users had to agree to "sending anonymous usage and diagnostic data" to Apple when setting up the device. Most people just don't allow that.
  • In newer iOS Versions (I think it started in iOS 6) the device is sending crash reports directly to iTunes Connect. BUT also in this case, the user has to approve "sending anonymous usage and diagnostic data" when setting up the device. Most people just don't allow that again. You can check yourself if you allowed it in the Settings app under General, About, then scroll down to Diagnostics & Usage.

因此,获取崩溃报告的最佳方式(遗憾的是)是将崩溃报告库包含到您的应用中.由于隐私原因,您应该允许用户允许或拒绝发送报告.大多数人确实允许这样做,因为对话框大多会说诸如匿名数据以修复导致应用程序崩溃的错误,并且(希望)那时也不会发送任何有隐私问题的数据.但我认为神奇的是,它并没有在这样的全局上下文中说 usage data .多年来从未遇到过没有收到崩溃报告的问题,即使显示警报并让用户决定,也可以选择始终发送.

So the best way to get crash reports (sadly) is to include a crash reporting library into your app. Due to privacy reasons, you should allow the users to allow or deny sending the reports. Most people do allow this, since the dialogs mostly say something like anonymous data to fix the bug that caused the app to crash and (hopefully) won't send any privacy problematic data in then too. But the magic is I think, that it doesn't say usage data in such a global context. Never had problems in all the years not getting crash reports even though showing alerts and letting the users decide, also with an option to Always send.

以下答案概述了可用的崩溃报告解决方案:如何使用 Apple 提供的崩溃报告等代码生成崩溃报告

The following answer shows an overview of available crash reporting solutions: how to generate crash report using code like crash report provided by Apple

这篇关于用户说iOS应用程序崩溃没有任何进一步的解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆