如何将崩溃报告的电子邮件地址重定向到我的电子邮件(对于我的可可应用程序)
我想知道是否有任何方法可以将默认的 OS X 崩溃报告者电子邮件地址设置为我的电子邮件地址(对于我的可可应用程序)。
我希望将崩溃报告发送到我的电子邮件地址,而不是 Apple 的电子邮件地址。 ;)
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如mipadi所说,崩溃报告不是通过电子邮件发送的,而是上传到某些Apple服务器的。要拦截此事件和/或将其发送到您自己的服务器,已经有几个类和框架来处理此问题,以下是一些:
更复杂(捕获事件):
minidump
) 并模拟 Apple 崩溃报告器界面,其中包含您的公司名称)简单(阅读故障转储):
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):
minidump
) and simulates the Apple crash reporter interface with your company name in it)Simple (read the crash dumps):
不会,崩溃报告总是发送给 Apple。如果您想自动接收应用程序崩溃报告的副本,则必须编写自己的解决方案。一种方法是检查
~/Library/Logs/DiagnosticReports
中是否有包含应用程序名称的.crash
文件,并自动通过电子邮件将它们发送给您,尽管这会增加开销您的计划,因此您必须决定它是否值得。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.