“XXXXX” is damaged and can’t be opened. You should move it to the Trash 解决方案

1. 打开 AnyWhere 选项

MacOS 早期版本只要打开 System Preferences -> Security & Privacy 并勾选 AnyWhere 就可以了。

如果新的版本 AnyWhere 没有出现,则需要执行以下命令

$ sudo spctl --master-disable

命令执行完成,一般都可以看到 AnyWhere 选项了。

2. 使用 xattr 命令行

使用 xattr 命令调整 app 属性,比如 “Sublime Text”

$ sudo xattr -cr /Applications/Sublime Text.app

参考:

原文地址:https://www.cnblogs.com/davad/p/xxxxx-is-damaged-and-cant-be-opened-you-should-mov.html