本文介绍了CrashReporter的作用、如何识别和关闭崩溃报告,以及如何禁用touchbar相关的后台进程。
我的天,每隔几秒ReportCrash、com.apple.nowplayingtouchui 这两个妖孽就作怪一次。实在是太卡了,先不调查这两个可疑进程了,先把 ReportCrash 解决掉。
什么是CrashReporter?
CrashReporter在应用程序崩溃的任何时候都会运行,它旨在保存应用程序状态,以帮助开发人员找出应用程序崩溃原因。基本上,一个进程是启动、崩溃(并调用CrashReporter),然后重新启动,重复这个循环,永远不会结束。
如何识别崩溃的原因
为了显示哪个进程正在触发并停止此循环,CrashReporter的日志记录非常冗长,这使得查找有问题的应用程序变得更加容易。打开console.app(/Applications/Utilities/console.app)并查看system.log的末尾,查看哪个应用程序正在崩溃。
如何关掉 ReportCrash
这个操作会停止 ReportCrash 而且开机后,不会再次发生这个问题。
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist
如何重新启用 ReportCrash
launchctl load -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist
com.apple.nowplayingtouchui 跟 touchbar 有关?
Google 到的禁用方法
launchctl unload -w /System/Library/LaunchAgents/com.apple.touchbar.agent.plist
从命令来看,的确跟 touchbar 有关,然而我的老爷机上并没有 touch bar…
duang, SIP 阻止了我的操作
/System/Library/LaunchAgents/com.apple.touchbar.agent.plist: Operation not permitted while System Integrity Protection is engaged
我投降,我还是不敢禁用SIP, 这个就这样吧,估计很快就被系统更新所修复
转载请注明:拈花古佛 » Mac 禁用一些高占用cup的进程