"Xcode"已损坏,无法打开.您应该将其移至垃圾箱 [英] “Xcode” is damaged and can’t be opened. You should move it to the Trash

查看:1174
本文介绍了"Xcode"已损坏,无法打开.您应该将其移至垃圾箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Mavericks上安装了XCode 6.它没有运行.将操作系统更新为Yosemite 10.10:现在Xcode.app(通过* .dmg安装)启动失败,错误消息Xcode is damaged and can’t be opened. You should move it to the Trash.通过App Store更新为XCode 6.0.1.仍然没有运气.相同的错误消息.有人修复了吗?

Installed XCode 6 on Mavericks. It din't run. Updated OS to Yosemite 10.10 : Now Xcode.app (installed through *.dmg) launch fails with error message "Xcode" is damaged and can’t be opened. You should move it to the Trash. Updated to XCode 6.0.1 through App Store. Still no luck. Same error message. Anyone with a fix?

推荐答案

在macOS Sierra构建下的所有新添加的应用程序中,我都遇到了此错误.

I experienced this error with any new added application under (all) macOS Sierra builds.

唯一对我有用的解决方案是执行:

The only solution that worked for me was to execute :

xattr -rc /Applications/<faulty application>.app

您还可以使用以下命令来修复"所有应用程序:

You can also use the following command to "repair" all applications :

xattr -rc /Applications/*.app

这篇关于"Xcode"已损坏,无法打开.您应该将其移至垃圾箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆