允许任何来源

1
sudo spctl --master-disable

终止ReportCrash

m1芯片的mac突然发现耗电比较高,查看进程发现reportcrash一直占用大量cpu,强行停止后还会再启动,终端里运行以下代码可禁用

1
2
3
4
# 禁用reportcrash
`launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist`
`sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist`

1
2
3
# 启用reportcrash
`launchctl load -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist`
`sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist`