尝试使用检查签名工具检查 Gatekeeper 一致性,如所述 here运行以下命令:
./check-signature ~/Desktop/folder/test.pkg
得到如下输出:
(c) 2014 Apple Inc. All rights reserved.
/Users/username/Desktop/folder/test.pkg: Warning: bundle installers are deprecated, please use regular installer packages.
/Users/username/Desktop/folder/test.pkg.pkg: resource envelope is obsolete (custom omit rules)
谁能帮我理解上面的输出是什么意思?
最佳答案
您的“资源信封已过时”错误意味着您拥有“版本 1”签名并正在运行 OS X 10.9.5 或更新版本的机器上检查它。
从 OS X 10.9.5 开始,到 10.10 及更高版本,Apple 改变了代码签名的工作方式。 Apple 技术说明 2206,可在此处获取:
https://developer.apple.com/library/mac/technotes/tn2206/_index.html
解释了新的代码签名要求。通常,您需要在运行 10.9 或更高版本的机器上对您的代码和包进行签名,以便生成“版本 2”签名。注意:您不能简单地将“codesign”或“productsign”从 10.9 机器复制到运行 10.8 或更低版本的机器。这些工具依赖于操作系统的其他组件来完成它们的工作,因此您实际上需要在运行 10.9 或更高版本的机器上生成您的签名。
关于macos - 检查签名工具失败并显示消息 : resource envelope is obsolete (custom omit rules),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27946262/