When we develop an app, we need to test it on a real device, or put it on the corresponding app market. At this time, we need App packaging ( packaging process ). Then, we need Bundle ID , certificate private key password, certificate profile file , and private key when packaging. key certificate .
To apply for these materials, you need to obtain them in the Apple Developer Center
First log in to the Apple Developer Center, find the certificate option and click it to apply for the relevant certificate
(Both Mac and Windows computers can log in to obtain, but some certificates need to be obtained by Mac)
Bundle ID:
( It is best to apply for a Bundle ID in the first step, and some certificates will be designed into the Bundle ID later )
Click identifiers - click Add
Select the first option App IDs - click Continue
select app
Enter the description of your identifier and the name of the bundle id (the format of the bundle id is preferably com.domianname.appname)
Remember to select the functions you need in the capabilities, my app needs push function, so I chose push notifications
All filled out, just go back to the top and click continue
Confirm the information again, click register after confirmation
At this time, go back to the identifiers list and you can see your registered id
Certificates (private key certificate p2)
Click to add
Choose whether you correspond to a development certificate or generate an official certificate
Then enter the page to fill in the CSR file
Where does the CSR file come from:
Then you need a mac computer
Find the keychain access application and click to enter it to select Certificate Assistance - Request a Certificate from a Certificate Authority
Fill in your corresponding information
This way you get the CSR
Will get to csr upload
After clicking continue, you can download the cer file
At this time, when you get the cer file, you need to generate the corresponding private key file p12
Get the cer file and click to open it in the mac to enter the keychain access
In my certificate option, select your corresponding cer file and right-click to select export
click export
Remember the password entered here, this password is the certificate private key password
Enter the mac computer lock screen password here
After clicking Allow, you will get the corresponding p12 private key file
Profiles (certificate profile file)
Click to add
The appid here is the id created earlier
This will succeed
The above is to obtain all the documents and information required for packaging, and you can fill in the corresponding information