macos – 当mac app崩溃时,CrashReporter对话框不会显示

macos – 当mac app崩溃时,CrashReporter对话框不会显示,第1张

概述我有一个Mac应用程序商店应用程序,它崩溃时默默地消失.它不会显示CrashReporter对话框,以便用户有机会向Apple报告崩溃. 我在多台机器上看到了相同的行为.有没有任何已知的原因可能发生这种情况? 根据TN2123: In addition, if the program that crashed is running as a logged in GUI user, CrashRep 我有一个Mac应用程序商店应用程序,它崩溃时默默地消失.它不会显示CrashReporter对话框,以便用户有机会向Apple报告崩溃.

我在多台机器上看到了相同的行为.有没有任何已知的原因可能发生这种情况?

根据TN2123:

In addition,if the program that crashed is running as a logged in GUI
user,CrashReporter will present the user with a dialog asking them
whether they want to submit a BUG report to Apple

“以登录GUI用户身份运行”是什么意思?窗户是否必须可见?

更新:

我正在阅读manpage for ReportCrash,并发现以下内容:

For application crashes (but not background process crashes)
ReportCrash will display a dialog notifying the user that the
application unexpectedly quit and offering to reopen the application
or send the report to Apple. For developers,the behavior of this
dialog can be adjusted using
/Developer/Applications/UtilitIEs/CrashReporterPrefs.app which is
installed as part of the developer tools.

我运行了CrashReporterPrefs并将我的CrashReporter模式更改为Developer.当我运行应用程序并触发崩溃时,显示了CrashReporter对话框!

所以我想现在的问题是:“应用程序”崩溃和“后台进程”崩溃之间有什么区别?

解决方法 如果您的应用使用lsuielement或LSBackgroundOnly,则它是一个“后台进程”,用于确定是否显示崩溃报告器. (其他“后台进程”包括UNIX-land守护进程,例如Apache Web服务器,以及从SSH或telnet连接启动的进程.) 总结

以上是内存溢出为你收集整理的macos – 当mac app崩溃时,CrashReporter对话框不会显示全部内容,希望文章能够帮你解决macos – 当mac app崩溃时,CrashReporter对话框不会显示所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1072300.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存