Recently an old project needs to update the iteration, and a new project needs to be on-line. Some of their own bugs, there are some do not understand the information around the problem. Here to make a summary, write the overall steps, as much as possible, as well as some of their own understanding. There are a lot of steps because the information that we look up in the author may inadvertently feel a small problem on the jump, but it brings us a lot of trouble. Will write out all the problems I have encountered, and will modify the additions at any time. Thank you all.
1. First, we need an Apple developer's paid account
https://developer.apple.com/go to this website to apply, as for the $299 or the financial strength of the company to see you. At the same time, all of the relevant certificates, configuration files and so on in this article are certificates, Identifiers & Profiles in this website.
2. Create a Publisher certificate certificates
Open the Apple Developer website and login to the account.
Click on the left side of the certificates, Identifiers & Profiles button, or the middle of the certificates, Identifiers & Profiles button can be entered to create the certificate interface.
When you come in, the default is the interface to create the certificate:
First of all, I want to talk about my understanding of this certificates. At first I thought that this certificates certificate is related to the app you want to publish, which means that this certificates is only bound to your app. Later found to be bound, but not unique. Since many of the materials consulted did not talk about the certificate, I began to understand that the relationship between certificates and provisioning profiles was not understood.
I understand this question: certificates is your Apple Developer ID for your use of the computer authorization, that is, the computer with the certificates certificate can have a certificate of the type of the account of the app to do some processing, such as packaging release or real machine, packaging test and so on. Each Apple developer ID will need to create a certificate that contains your Apple Developer ID and computer information, but does not contain information about the app you want to publish.
the above is only for publishing and testing related app Store and Ad hoc package release/test certificates and iOS apps Development Test Two certificates.
Well, once we know what certificates's going to do, let's create a certificates.
Click on the + sign to jump to the Create certificates interface
There are a lot of certificates that can be created. The iOS App development certificate under the development option is configured with a test certificate and is used for real-computer testing. Maybe some people feel like I don't have this certificate can still be tested on the real machine, indeed, after Xcode7, from Xcode 7 to support the normal Apple account for certificate-free real-computer debugging . But the difference is that without this certificate your real machine test app is available for a period of time, typically seven days.
The bottom of the certificate, Apple push Notification authentication Key, is obviously a certificate that was pushed with APNs. Now we can't use it for the time being.
Our mission is to pack and upload, so we need to select the "App Store and Ad Hoc" under "Production". This certificate is configured with a packaged certificate. With it you can package your app as an update AppStore or an IPA package for testing.
This explains why my two options are gray and not selectable. There are two types of Apple developer accounts, individual level and enterprise level. The number of certificates they can create is different, but they are limited, two or three. So the solution is to revoke remove a corresponding certificate.
We choose App Store and Ad Hoc, click Continue and go to the next screen.
Here it allows us to create a certificate singing request, a certificate to sign the requested file. What is the role of this file? Just now I said that the certificate is a AppleID authorize a computer test or release permissions, that appleid how to confirm which computer? Or, how did AppleID get the information about the computer? That's the file.
Back to our computer, I believe everyone is a Mac. Open the keychain (in "Other" in the F4 key, or F4 search the "keychain") to find this interface:
This interface appears:
The user mailbox must fill in, fill in your AppleID account corresponding mailbox, the rest is optional. Finally select Save to disk, continue, will prompt you to store location. Choose Storage, we can get such a file.
Does it look familiar to the name? It looks familiar, and that's the CSR file we need.
Go back to that interface, click Continue, and do the following in the next screen:
Click Generate and you will see the certificate you created in the new interface. Click Download to download to the desktop:
Double-click the file and you'll be able to find it in your keychain.
Note: It is enough to create a publishing certificate for a developer account, and if you need to mount the app on another computer in the future, simply create the P12 file in keychain Access and install the P12 file on the other computer. This is equivalent to giving other computers permission to publish the app.
This way, the certificates certificate is created and installed.
3. Create an app IDs
Just now we created the certificate, which is AppleID's authorization to the computer. Next we're going to create something that's relevant to our app.
Back to certificates, Identifiers & Profiles interface, click on the app IDs below Identifiers, and all of your app IDs appear.
Similarly, click on the "+" sign to enter the Create interface:
What you need to add is the Name under App ID Description. and the bundle ID in the explicit app ID under app ID suffix below. Name is your description of the app ID, plain English input, usually named your project name, is for you to see the identifier. And the next two app IDs are the app IDs we created. What is the difference between the two?
The full App ID will be appended application Identifier Prefix (typically teamid.), divided into two categories:
- Explicit App ID: A unique app ID that uniquely identifies an application. For example, the app id "Com.apple.garageband", which identifies the app with Bundle Identifier as "Com.apple.garageband".
- Wildcard App ID: an app ID with a wildcard that identifies a group of applications. For example, "*" (actually application Identifier Prefix) represents all applications, whereas "com.apple.*" can represent bundles Identifier with "com.apple." Start (apple) for all applications.
Users can register (register) or delete (delete) registered App IDs on the Developer Member Center website. Depending on your situation, choose the appropriate app ID. Explicit bundle ID is the bundle ID in your project and this bundle ID is unique. If you sign up with an error that says your bundle ID is registered as an app ID, you can change it. Here I choose the explicit App ID. Select the services you need below, and choose Game Center and In-app purchase two by default. Indicates that they are online in Gamecenter and AppStore respectively. In general, we also choose the push notifications, because push is the function that the general app needs. After the selection is complete, there is a page like this:
Confirm your choice. Enabled means it can be used, and disabled indicates that it cannot be used. If you have just checked the push notifications, the push notifications here will prompt the configuration, indicating that it has not been configured and needs to be configured to use. Don't repeat it here. We click Register. Click Done on the next screen. A new app ID was created successfully. You can return to Identifiers-all to find your app ID.
4. Create Provisioning Profiles
Okay, here's the last step.
What is this provisioning profiles for, it contains all the information we created before, certificates, App ID and your Appledeveloper account, and contains some other information depending on the type of For example, test the udid of the phone and so on test environment. Only when all this information is accurate can the project be successfully packaged and correctly tested on the phone or uploaded to AppStore.
Next, let's create a release provisioning Profiles.
As shown in the Create provisioning profiles interface.
There are three related to us. The first is the iOS App development file under development. This certificate is a test file, matching with the above test certificate, belongs to the real machine test companion file.
Distribution The following app Store, do not introduce more, look at the name to understand. Packaged to upload App store use.
Ad Hoc. This is used for Test pack distribution, including the udid of the test phone. Later will talk about how to use it to hit the test package to generate short connections and QR code for testers to install.
Select the App Store option and click Continue. Next, select your app id,continue, select the certificate you created certificates,continue, and name it. We generally start with the project name + file type, such as Xxxadhoc and so on.
Create successfully, download download, and then double-click Open to install successfully. Or not now, another way to configure conditional files later on.
With the package upload AppStore about appledeveloper This site is done. The next time you talk about Xcode-related issues.
IOS Package Upload AppStore related (1)-Related certificate configuration