4

I joined an existing enterprise developer program. I was able to run the app in developer mode, but had issues with building and archiving. The certificate for creating a universal distribution app is already present, but I am not able to build with it. How can I do it in steps??

MD Aslam Ansari
  • 1,565
  • 11
  • 19

1 Answers1

1

The certificate is only half the necessary parts. You also need the key for the certificate.

Open Keychain Access on your Mac and select the Certificates filter on the left. When you select the certificate for your Enterprise Distribution, make sure you there is a green check mark in the top section next to a message that says "This certificate is valid" (bubble 4 in picture below).

Also, and this is likely your problem, you need to make sure there is a triangle next to the certificate that allows you to expand it (See bubble 3 in picture below). Without that, you have no way to code sign using the distribution certificate. You will need to get the private key from the person who created the certificate, or get the key off of the machine that was used to generate the certificate signing request file (CSR) used to generate the cert.

enter image description here

wottle
  • 13,095
  • 4
  • 27
  • 68
  • I am not able to add the certificate its showing "The contents of this item cannot be retrieved". – MD Aslam Ansari Nov 12 '15 at 02:42
  • Are you trying to import the p12 file (for the key) to your keychain? If so, try this: http://stackoverflow.com/a/18319568/3708242 – wottle Nov 12 '15 at 15:04