Search code examples
xcodemacoscocoadmgpkg-file

Build Failed While creating package .pkg file


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.

enter image description here


Solution

  • 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)

    image 1: enter image description here

    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.

    image 2:enter image description here