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

简介: “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


参考:


目录
相关文章
|
10月前
|
Java Go API
译|Don’t just check errors, handle them gracefully(二)
译|Don’t just check errors, handle them gracefully(二)
63 0
|
10月前
|
程序员 Go API
译|Don’t just check errors, handle them gracefully(一)
译|Don’t just check errors, handle them gracefully
52 0
|
11月前
|
关系型数据库 MySQL Linux
SQLSTATE[HY000]: General error: 1364 Field ‘xxx’ doesn't have a default value 解决办法
SQLSTATE[HY000]: General error: 1364 Field ‘xxx’ doesn't have a default value 解决办法
730 0
|
12月前
|
开发者 iOS开发
Xcode运行报错The operation couldn’t be completed. Unable to launch xxx because it has an invalid code...
Xcode运行报错The operation couldn’t be completed. Unable to launch xxx because it has an invalid code...
651 0
解决办法: error: passing ‘const VideoFrame’ as ‘this’ argument discards qualifiers [-fpermissive]
解决办法: error: passing ‘const VideoFrame’ as ‘this’ argument discards qualifiers [-fpermissive]
173 0
|
缓存 开发工具 iOS开发
Xcode The operation couldn’t be completed. (LaunchServicesError error 0.)问题的解决
Xcode The operation couldn’t be completed. (LaunchServicesError error 0.)问题的解决
Xcode The operation couldn’t be completed. (LaunchServicesError error 0.)问题的解决
Appium问题解决方案(10)- Original error: Swipe did not complete successfully
Appium问题解决方案(10)- Original error: Swipe did not complete successfully
110 0
Appium问题解决方案(10)- Original error: Swipe did not complete successfully
How to find root cause of creation navigation failure
Created by Jerry Wang, last modified on Dec 09, 2014
How to find root cause of creation navigation failure