Note: The certificate requested on the Apple Developer website is a certificate that authorizes the development or release of a Mac device, which means that one device corresponds to a certificate, but a $99 account allows only 3 release certificates, two development certificates, which cannot meet the use of multiple Mac devices, and using P12 files can solve this problem.
Why do you want to export the. p12 file
When we use more than three Mac devices to develop the application, want to apply for a new certificate, if in our certificate, contains 3 release certificates, 2 development certificates, you can find no further application of the development certificate and publishing certificate (generally in our certificate interface should have only one development certificate, a publishing certificate, There is no need to generate so many certificates that the certificates will not be added again until they expire. )
At this point, when you click "+", you will find that you can not click on the development and release certificates, that is, to add the development certificate and publish the certificate:
There are two ways to resolve a certificate that cannot be added.
The first method-"revoke" (not recommended):
"Revoke" the previous certificate,
Then regenerate a new certificate.
This method is possible, but will cause the corresponding provisioning profiles failure, this can be large and small. If you are the only person who is not a problem, if it is a team everyone is in use, you have deleted the certificate, it will lead to the failure of other people's description, which means that other people can not publish the application (but also to develop), this is a big problem, so do not advocate this practice.
The second Method-". P12" (recommended):
Each of our certificates can generate a. p12 file, which is an encrypted file that, as long as it knows its password, can be used by all MAC devices so that the device does not need to be re-applied to the Apple Developer website for development and release of the certificate.
Note: The general. p12 file is for use by someone else, the machine must already have a certificate with a secret key to generate the. p12 file,
Open the keychain, select the certificate we need, right click, select "Export" IPhone distribition: "" ":
Fill in a name for the. p12 file and click Save:
Fill in a "password", "verify" and the same password:
Click OK, a. p12 file is formed on the desktop:
To install successfully on someone else's computer, you must have two files:
The certificate exports the ". P12" file.
The "description" in the Apple developer that corresponds to "certificate"
If you need to use it for development, these two files are required:
The. p12 file itself is an encrypted certificate, so you can use these two files to make other Mac devices available:
After you get these two files, double-click the "Certificates", ". P12" file (you need to enter the password, the password is the password that was generated when the. P12,), the role is to join the keychain, so that our computer has the proof of development, "profile" (role is placed in Xcode, Let Xcode know the legality of our development), after the addition can be used.
How to use an Apple certificate multiple times-Export P12 file