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??
-
What error did you get? – tuledev Nov 10 '15 at 02:52
-
No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“example App Profile”) were found. Xcode can attempt to fix this issue. This will reset your code signing and provisioning settings to recommended values and resolve issues with signing identities and provisioning profiles. – MD Aslam Ansari Nov 10 '15 at 02:56
-
Does it has a button "Fix issue"? what happen if you click that button? – tuledev Nov 10 '15 at 02:59
-
Yes it has but its building for developer again. I want to build with existing certificate. Do I need any identity, but i read that for enterprise we dont need identity. – MD Aslam Ansari Nov 10 '15 at 03:03
-
http://www.flipcreator.net/icreateapp/create-distribution-certificate.html – tuledev Nov 10 '15 at 03:06
-
This is for creating new certificate. But I already have an existing one. How can I use it. – MD Aslam Ansari Nov 10 '15 at 03:24
-
Did you download it? Just double click on it. – tuledev Nov 10 '15 at 03:28
-
You can add your accout to Xcode: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppStoreDistributionTutorial/AddingYourAccounttoXcode/AddingYourAccounttoXcode.html – tuledev Nov 10 '15 at 03:30
-
I think being the team member you only have the right to develop not distribute. – M Zubair Shamshad Nov 10 '15 at 05:16
-
@anhtu : I have added the account before and able to see all the certificates in view details. – MD Aslam Ansari Nov 10 '15 at 07:15
-
@Zubair : Do I have to ask for the distribution identity from the admin? – MD Aslam Ansari Nov 10 '15 at 07:16
-
@Aslam what account did you add? `enterprise developer program` or just a normal developer account? – tuledev Nov 10 '15 at 07:17
-
enterprise developer program – MD Aslam Ansari Nov 10 '15 at 07:38
1 Answers
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.

- 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