macos - 检查签名工具失败并显示消息 : resource envelope is obsolete (custom omit rules)

标签 macos signed osx-gatekeeper pkg-file

尝试使用检查签名工具检查 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/

相关文章:

java - 通过单击在 Mac Big Sur 上运行 .jar 文件

signed - 从 8 位转换为 16 位

java - 有人可以给我关于如何正确签名 java 小程序的分步说明吗

python - Python 能否用于向 Mac 发送真正的按键按下事件

php - 带有 XAMPP 的 OSX : "imagegd2(): unable to open temporary file"

xcode - 基于文档的应用程序示例

storage - 计算机如何区分一个整数是有符号的还是无符号的?

applescript - 是否可以自动对 AppleScript 应用程序进行代码签名?

java - 为 Mac Store 签名 Webstart 应用程序

mac-app-store - Mac OS 山狮 : Is it possible to code sign applications for Gatekeeper without paying Apple for a developer membership?