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

主宰稳场 提交于 2019-12-08 03:35:01

问题


I'd like to know if there is any way how to set default OS X Crash reporter email address to my email address (for my cocoa application).

I'd like to get my Crash reports to my email, not Apple's. ;)

Thank you.


回答1:


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):

  • UKCrashReporter
  • SFBCrashReporter
  • ILCrashReporter



回答2:


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.



来源:https://stackoverflow.com/questions/5805171/how-to-redirect-crash-reports-email-address-to-my-email-for-my-cocoa-app

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