问题描述
要创建.pkg
文件,请使用" Packager.app ".我使用 Format-'Flat'创建项目.当我尝试使用下一个命令对.pkg
文件进行签名
For creating .pkg
file I use 'Packager.app'. I create project with Format - 'Flat'. When I try to sign .pkg
file with next command
productsign --sign "Developer ID Application: Tomas Urbonavicius (99ZZ8796S2)" my.pkg my_signed.pkg
我遇到下一个错误'找不到开发人员ID应用程序:Tomas Urbonavicius(99ZZ8796S2)"的适当签名.
如果我以 Format-'Bundle'创建项目,则输出文件格式为< .mpkg .当我尝试 .mpkg 签名时,出现下一个错误
If I create project with Format - 'Bundle', I have output file format '.mpkg'. When I try to sign .mpkg, I have next error
'组件包"saver.pkg",必须对其进行明确签名,在"my.mpkg"中找不到组件包"app.pkg",必须进行明确签名'
'component package "saver.pkg" not found inside "my.mpkg" and must be signed explicitly,component package "app.pkg" not found inside "my.mpkg" and must be signed explicitly'
推荐答案
如错误消息所述,您需要使用安装程序签名身份,而不是应用程序签名身份.它应命名为开发人员ID安装程序:Tomas Urbonavicius(99ZZ8796S2)".如果您没有安装程序标识,则可能需要生成一个.请参阅维护签名身份和证书上的Apple文档. 有关如何执行此操作的信息.
As the error message says, you need to use an installer signing identity, not an application signing identity. It should be named "Developer ID Installer: Tomas Urbonavicius (99ZZ8796S2)". If you don't have an installer identity, you may need to generate one. See Apple's doc on Maintaining Your Signing Identities and Certificates for info on how to do this.
这篇关于包含其他pkg文件的CodeSigning pkg文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!