The online Xcode Package IPA tutorials are mostly too old and incomplete, so we've compiled a full and detailed tutorial on the Xcode package app to share with you and me on the way to the big God.
Xcode requests an iOS certificate before packaging the IPA package, and then imports the certificate to package and export the IPA package.
is divided into 5 steps
1. Apply for iOS certificate
2. Import the certificate into the keychain
3. Xcode Configure iOS Certificate
4. Configure Xcode Packaging environment
5. Package and export the IPA package
I. Apply for an iOS publishing certificate and profile
1, first apply for an app IDs (application ID), has been requested to skip.
APP IDs is used in many areas of the following
First open the developer Center https://developer.apple.com/cn/and go to the certificate page.
1.1 Click on the certificate, ID and accessory file to enter the settings.
1.2 Select app Ids–> Click + Create a new app ID
There are two items that you need to fill out yourself:
The first name, used to describe your app ID, this random, no restrictions, preferably the project name, so as to facilitate their own identification (not allowed in Chinese)
The second bundle ID (app ID Suffix), which is the suffix of your app ID, needs to be carefully filled in. It is used to mark our app so that it has a fixed identity and is directly related to your program. Fill in the format of the Explicit App ID: Com.company.appName, according to the format, write a convenient to remember, a lot of places to use later.
The third app service, default will choose 2 items, cannot modify, other according to their own needs of the choice of services, and then click Continue confirm, next.
Check if there is nothing wrong click on register and click Done to complete the app ID creation.
2. Application for issuing certificate
Use the Appuploader tool to apply for export of p12 files and profiles directly.
If the Appuploader is not installed, install it first.
Appuploader Installation Tutorials
2.1 Open Appuploader, enter the Apple Developer Center account and log in.
2.2 Select Certification
2.3 Click +add, here is the development certificate and so on create options, here choose the third issue certificate.
If you have a publishing certificate before you can not create, with the previous line, Apple stipulates that individuals can only create 3 publishing certificates.
2.4 Enter, certificate name (optional) The password for the mailbox (any mailbox is OK) (used when importing Keychain assistant) and then click OK
2.5 Now generated a good publishing certificate, click P12 file, download the certificate file, save to the computer.
This will create a publishing certificate.
3. Application Release Profile
3.1 Back to Software click Profiles
3.2 Click +add, here is the development of the description file and so on, choose to publish the description file here.
3.3 Select App IDs, previously created in the developer Center, will appear here automatically.
3.4 Shangang Create a publish certificate association OK, enter name, click OK
Note: If you have previously created more than one publishing certificate, the following Publish certificate box displays multiple publishing certificates,
You can select all, by default, the newly created publishing certificate, and when you package, enter the newly created publish certificate password.
PS: Publishing a certificate different apps can be generic, the description file is different on the line.
3.5 Publish profile is generated at this time, click Download Download to save the computer
So you get a. P12 certificate file and a. mobileprovision description file
Second, import iOS certificate p12 to Keychain
1, open Keychain Assistant, double-click the P12 file, the default keychain is (login), note here must choose (System)
The iOS certificate will not report an error if you pack it later.
2. Prompt for this certificate is signed by an unknown authority, because it is not an iOS certificate requested with a local keychain file
But it's okay, just set up trust.
3, double-click the certificate, click Trust, when using this certificate, set to always trust.
Iii. Xcode Configuring the iOS Certificate and packaging environment
1, open your project with XOCDE, click to enter the settings certificate interface.
There are two places to set up
Select Release (release) under Code signing Debugs is beta, and the App Store on the shelves chooses the released version.
Then select the corresponding iOS publishing certificate you just uploaded
2, back to the basic information settings interface, Bundie this fill, the first to create the AppID, with the creation of the iOS profile is the same as the selection.
Now there's an error, because the iOS profile hasn't been imported yet.
3. Double-click the. Mobileprovision description file, flash to automatically import into Xcode, no error indicates that it is possible.
4. Select the Xcode menu bar if the figure shows
5. Change the archived to release
6. Click on select Device, select as packaging device.
Iv. Project Packaging IPA package Export
1, select the menu bar, if the archive is still gray, stating that the previous configuration did not take effect, exit to reopen under.
Click Archive to start packing.
2. After the packing progress bar is finished, the following screen will pop up, click Expcrt
3. Here is a personal Development Account published to the app Store, so select the first one and click Next.
4, choose your developer account, not logged in will prompt you to log in, click Choose, will check your certificate is correct.
5, iOS certificate detection through this step, click Export, will export a folder, which is the IPA file, is done.
This IPA package can be uploaded to the App Store.
See the full listing process on the App Store
Full detailed iOS app listing process introduction
2017 latest Xcode Package app detail graphics