If it is only to enter the company to develop the iOS program ape people will inevitably on the Apple certificate, configuration files, especially some need to start the company, the simplest is that the real machine debugging is unavoidable and these things to deal with, sometimes time to finish may be in the heart also whispered, This article based on personal experience on certificates, identifiers and profiles do a simple introduction, but by default you already have an Apple account, if you are still learning on the road, one day you will have, start to the point:
1. On Apple's website, Apple has revised the website after WWDC15, the following is the latest:
2. Trinity Management Mode:
3. Manage iOS Apps, this is the image that will be seen on the Internet, hide the account information;
If you get to the point of the article here, then explain how these options work (this article links: Http://www.cnblogs.com/xiaofeixiang,iOS technology Group: 228407086)
Certificates (certificate)
Certificates are mainly divided into development and production, development certificates are used to develop and debug applications, production are primarily used to distribute applications, and different kinds of certificates do not function the same:
Development:
- App development (1 years): Used to develop and debug applications on the real machine.
- Push Development (1 years): Used to debug Apple Push Notification
Production:
App Store and Ad Hoc (3 years): Publish App Store and adhoc applications;
Apple Push Notification service SSL (Production) (1 years) : Use Apple Push Notification in the release version;
VoIP Services Certificate
Pass Type ID Certificate
Website Push ID Certificate
The marked certificates have been used, not annotated I have not used, dare not fraught. In Xcode's code signing, you can set up a certificate that is used to sign code.
Tips:
Before we apply for a certificate, we need to apply for a certificate Signing request (CSR) file:
This process actually generates a pair of public and private keys, saved in the keychain of your Mac. Code signing is using this encryption method based on asymmetric secret key, signing with the private key, validating with public key. Image source on the Internet, the principle is similar, in their own Mac keychain login stored the relevant public key and private key, and the certificate contains the public key. You can only sign with the private key, so if you don't have a private key, the certificate doesn't make sense. Therefore, it is a good idea to export and save your private key when you are finished applying for the certificate. You can use the same private key when your team has new members or other devices that need to share certificates. The private key is saved in your own Mac, and the Apple-generated certificate contains the public key. When the code is signed with its own private key, Apple can validate it with the public key in the certificate, ensuring that it is the code that I signed, not impersonating, to ensure the integrity of the code.
Identifiers (Logo)
identifiers is divided into six types, app Ids,pass Type ids,website Push ids,icloud containers,app groups and merchant IDs, where app IDs are the most commonly used, Other five kinds of unused, focus on the app IDs,app IDs used to identify one or a group of App,app IDs should be consistent or matching with the bundle ID in Xcode. There are two main types of App IDs:
- Explicit App ID: A unique app ID that uniquely identifies an application, such as Com.cnblogs.xiaofeixiang, that identifies a program with bundle ID Com.cnblogs.xiaofeixiang.
- Wildcard App ID: A wildcard app ID that identifies a group of applications. For example, * can represent all applications, while com.cnblogs.* can represent all applications beginning with com.cnblogs.
Every time you create an app ID, we can set the app service used by the app ID, which is the additional services it uses, as shown in the tick:
Devices (equipment)
with the development of the Apple Empire, the device type is now divided into five categories: Apple tv,apple watch,ipad,iphone and ipod touch. The devices contains all the devices available for development and testing in this account. Each device uses UDID to uniquely identify it. The number of devices in each account is limited to 100. Disable a device will not increase the quota, only after a year to delete, so if the machine more cautious use.
Profiles (config file)
The configuration file is divided into two kinds, one is development, the other is distribution, such as:
The Provisioning profile contains all of the above: certificates, App IDs, devices, let's think about two seconds first . , if there is no configuration file, how do we run an application on the real machine:
① is signed with a certificate to identify the application as legitimate, secure, and complete.
② indicates its app ID and verifies that the bundle ID is consistent with it;
③ if it is a real machine debugging, you need to confirm whether this device can be used to run the program;
Provisioning Profile Packs All this information together so that we can use it when debugging and releasing programs, so that we choose different profiles in different situations, and this Provisioning The profile file is embedded in the. IPA package when it is packaged. The team's provisioning profile contains the app ID for the provisioning profile, the certificates and devices that can be used, the corresponding certificate through the provisioning Profile Packager, and the app The program that corresponds to the ID runs to the device contained in the devices.
Apple official website about the configuration file: https://developer.apple.com/library/mac/documentation/IDEs/Conceptual/ APPSTOREDISTRIBUTIONTUTORIAL/REVISIONHISTORY.HTML#//APPLE_REF/DOC/UID/TP40013839-CH99-SW1, with the iOS technology group: 228407086 ~
iOS development-certificates, identifiers, and profiles detailed