Failed to sign Mac installer for distribution outside the Mac app store

I have a problem signing the installer for a Mac application that I plan to distribute outside the Mac app store. I am using the developer installer certificate to sign the application, but it gives some error. The following is the command I use to sign the application.

productsign --sign "Developer ID Installer: XYZ" "/path/to/input" "/path/to/output" productsign: signing product with identity "Developer ID Installer: XYZ" from keychain "login keychain Path" productsign: adding intermediate certificate "Developer ID Certification Authority" productsign: adding intermediate certificate "Apple Root CA" productsign: error: Can't add contents of input archive to output. 

Does anyone have a solution or any idea about this problem.

  • If I try to create an installer via xcode, then it will work fine. But since my application installer contains several .pkg files, we create the installer file through pakagemaker. My next request is:

  • Is it possible to successfully sign the installer created using pakagemaker.

  • Can I sign a .mpkg file.

Thanks in advance.

+4
source share
2 answers

This disappears when you set the minimum target in the "installation properties" to 10.5 (leopard)!

(When you open the installer using the packaging machine, select "Project"> "Install Propertiers" to find this setting.)

So this seems like a compatibility issue.

+2
source

If your .pkg is a package (a folder with files in it), first smooth it before signing:

pkgutil --flatten orig.pkg flat.pkg

productsign --sign 'Developer ID Application: Foo Guy' plat.pkg flat_signed.pkg

+6
source

All Articles