Mac提示App已损坏

  1. 启用任何来源
1
sudo spctl --master-disable

输入密码后显示

Globally disabling the assessment system needs to be confirmed in System Settings.
  1. 打开系统设置-隐私与安全性,在底下找到安全性-允许以下来源的应用程序,修改为允许任何来源
  1. 放行指定App
1
sudo xattr -rd com.apple.quarantine /Applications/xxx.app

注意/Applications/xxx.app替换为你的App路径

  1. 设置完毕后关闭允许任何来源
1
sudo spctl --master-enable
作者

Smaritron

发布于

2025-02-25

更新于

2025-05-15

许可协议