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.
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.