"/Applications/Xcode.app:密封的资源丢失或无效"验证Xcode安装时出现错误 [英] "/Applications/Xcode.app: a sealed resource is missing or invalid" error while validating Xcode installation

查看:200
本文介绍了"/Applications/Xcode.app:密封的资源丢失或无效"验证Xcode安装时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我可能和其他所有Apple开发人员一样从Apple得到了有关可能感染Xcode的备忘录. ( https://developer.apple.com/news/?id=09222015a )

Today I got the memo from Apple as probably every other Apple developer about potentially infected Xcode installations. (https://developer.apple.com/news/?id=09222015a)

我按照说明进行操作,并尝试使用提到的命令来验证我的Xcode应用程序. (spctl --assess --verbose/Applications/Xcode.app)程序运行了一段时间,并退出并显示"/Applications/Xcode.app:密封资源丢失或无效"消息.

I followed the instructions and tried to validate my Xcode app using the command mentioned. (spctl --assess --verbose /Applications/Xcode.app) The program ran for a while and exited with a "/Applications/Xcode.app: a sealed resource is missing or invalid" message.

文章说:除已接受"或"Mac App Store","Apple System"或"Apple"以外的任何来源以外的任何结果均表明该应用程序签名对Xcode无效."但是,我实际上非常确定我的Xcode副本是合法的(通过启用了Gatekeeper的App Store下载和更新),所以我认为可能存在另一个问题,无法按要求进行验证.

The article says "Any result other than ‘accepted’ or any source other than ‘Mac App Store’, ‘Apple System’ or ‘Apple’ indicates that the application signature is not valid for Xcode." However, I'm actually pretty sure my Xcode copy is legitimate (downloaded and updated via App Store with Gatekeeper enabled) so I thought maybe there could be another problem preventing it to validate as it should.

您是否知道此错误消息的实际含义?您是否认为我需要重新安装Xcode以防万一?

Do you have any ideas what this error message actually means? Do you think I need to reinstall Xcode just in case?

预先感谢您的帮助.

推荐答案

误报验证问题似乎是由于包含以前的iOS SDK以便向后兼容而引起的.

The false positive validation issue appears to be caused by containing previous iOS SDKs in order to be backwards compatible.

全新安装将完全擦除SDK目录.全新安装后运行验证测试时,它将通过.一旦复制了以前的iOS版本(对于我们来说,这是iPhone的iOS 8),验证就会失败.

A clean install will completely wipe the SDK directories. When you run the validation test after a clean install it will pass. Once you copy previous iOS versions, which, for us, is iOS 8 for iPhone, the validation will fail.

在更新到今天下午早些时候发布的XCode 7.0.1(7A1001)之后,对该场景进行了测试.

This scenario was tested after updating to XCode 7.0.1 (7A1001) which was released earlier this afternoon.

为了避免全新安装,您可以从各自的位置临时删除以前的SDK版本,然后运行验证.然后,一旦验证通过,将文件复制回它们所属的位置.

In order to avoid a clean install, you can temporarily remove the previous SDK version from their respective location, and run the validation. Then, once the validation passes, copy the files back where they belong.

这篇关于"/Applications/Xcode.app:密封的资源丢失或无效"验证Xcode安装时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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