我正在试着给我的包签名,以便自己分发。
> spctl --assess -v --type install Unsigned.pkg
Unsigned.pkg: rejected
source=no usable signature是这样的。
> productsign --timestamp=none --sign "Developer ID Installer: Aaa Ltd." Unsigned.pkg Signed.pkg
productsign: signing product with identity "Developer ID Installer: Aaa Ltd. (123456789)" from keychain /Users/user/Library/Keychains/login.keychain
productsign: adding certificate "Developer ID Certification Authority"
productsign: adding certificate "Apple Root CA"
productsign: Wrote signed product archive to Signed.pkg 进行得很顺利。
> spctl --assess -v Signed.pkg
Signed.pkg: rejected
source=no usable signature可疑..。
> spctl --assess -v --type install Signed.pkg
Signed.pkg: accepted
source=Developer ID看起来很完美。
但当我启动Signed.pkg时:
Signed.pkg can't be installed because its digital signature is invalid.为什么?
附言:阅读Apple website -证书是正确的,对吗?
发布于 2016-11-17 18:36:05
也有同样的问题。看起来pkg和dmg需要安装类型。(文档说是打开的)尝试直接检查上下文。您可能会从中获得更多信息。
spctl -a -t install --context context:primary-signature -v some-app.dmg还要检查你是否签署了所有的框架和内部使用的东西。检查符号链接,因为它们也喜欢粉碎东西。签名不是递归的,您需要手动对其进行签名。
https://stackoverflow.com/questions/34359416
复制相似问题