Reputation: 2055
I am creating a .pkg file using “Packages” application. Previously I would able to create .pkg file with certificate also but now this give me Build Failed error. while If I remove certificate than I can Build .pkg. Even I am not able to get any error log for error message. If anyone has any better tool or method to create package file and dmg file please tell me.
Upvotes: 1
Views: 1471
Reputation: 2055
I got the cause of this error. Problem was in my keychain, since I updated my OS to 10.12.3 I was facing this issue. so to resolve this I checked out my keychain where I found my Installer certificate in “Login” part (see image1)
so I copy this certificate in System part also (see image 2). All problem goes away, If any time I face this issue again I check keychain again. Problem solved.
Upvotes: 0
Reputation: 609
cd /location to app
productbuild --component "appname.app" /Applications --sign "3rd Party Mac Developer Installer: Company Name Private Limited" --product "appname.app/Contents/Info.plist" "appname.pkg"
Try PackageMaker application; it is good.
Use above command on terminal and your pkg will be good to go.
Upvotes: 0
Reputation: 2117
It is my understanding that signing with Packages presently does not work well. I think there is something in the manual about that, in fact. I build my package with Packages first, then sign it with productsign --sign <sign-id> <src-path> <dst-path>
. The <sign-id>
should be your "Developer ID Installer" identity, I think. This has been working well for me. You can then verify that the signing worked using spctl -a -v --type install <path>
, where <path>
is the path to the signed package made by productsign
.
Upvotes: 0