How to redirect Crash report's email address to my email (for my cocoa app)

依然范特西╮ 提交于 2019-12-08 04:19:26

As mipadi stated, crash reports arent sent by email, but are uploaded to some Apple server. To intercept this and/or send it to your own server there are already several classes and frameworks to handle this, here are a few:

More sophisticated (catch the event):

  • Breakpad (by Google, catches the event, generates its own crash dump (minidump) and simulates the Apple crash reporter interface with your company name in it)
  • PLCrashReporter (Similar to Breakpad, catches the event, generates its own crash dump, but no default UI is provided. The library is best suited for iOS -- it was written to operate within the AppStore's constraints, and x86-64 support on Mac OS X remains experimental).

Simple (read the crash dumps):

No, crash reports always go to Apple. If you want to automatically receive copies of your application's crash reports, you'll have to write your own solution. One way would be to check ~/Library/Logs/DiagnosticReports for .crash files containing your app's name, and automatically email them to you, although that'll add overhead to your program so you'll have to decide if it's worth it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!