关于iPhone:从iOS应用访问iOS崩溃报告

Accessing iOS crash report from iOS app

关于如何使用计算机访问崩溃报告的教程很多,但是我希望我的应用执行的操作是在启动时从自身扫描崩溃报告,以便用户可以使用我的应用发送我他们的报告。这可能吗?


PLCrashReporter是一个开放源代码崩溃报告框架,可以添加到iOS应用中。报告以protobuf编码格式生成,这应允许应用将这些报告上传到服务器。


看看这些可能具有您所需解决方案的资源:

  • https://testflightapp.com/
  • http://www.hockeyapp.net/
  • http://quincykit.net/

可用于崩溃报告的另一个专有(但免费)框架是Crashlytics。


您可以使用iTunes连接帐户获取它们

1
2
3
4
 When the user synchronizes their device using iTunes, crash reports are copied to a
directory on the user's computer. If the application was distributed via the App Store and
the user has chosen to submit crash logs to Apple, the crash log will be uploaded and the
developer can download it via iTunes Connect.

您还可以使用Crittercism,一旦发生崩溃,它会直接向您发送电子邮件。