Submit the App to App Store for iOS and perform real-time debugging.
You need an apple developer account. I use a personal account. Xcode 7 is followed by xcode 7. Because xcode 7 requires OS x 10.11 or a later version, OS x also requires version 10.11 or later. (In this article, the source code is submitted using xCode, not ipa, and I have not tried to submit ipa. I will not elaborate on it for the time being.) about debugging and submitting operations on the real machine in xCode, in the next article "iOS submits the application to App Store process and real machine debugging 2, xCode operation", this article only describes the certificate and configuration file. The length is a little longer and the content is not much. Most of them are operational, so I added some images to make the length a little longer.
1. Enter the certificate and configuration file of the apple Developer Center
1. Open apple Developer Center website: https://developer.apple.com, click "Member Center ",
2. enter your account and password to log on to the Developer Center and click "Certificates, Identifers & Profiles"
2. Create a set ID, certificate, and configuration file;
1. Create a set of ids, select "APP ids" on the page, and click "+ ".
Let's talk about it here,
A. name. Do not use Chinese characters.
B. IDs are classified into two types: "Explicit App id" and "Wildcard App ID". The "Explicit App ID" refers to creating a Set ID for a single application, this simple application uses the game center, in-APP purchase, data protection, and iCloud, push, and some other special situations. You can select the ones used in the figure, note that when you select this item, the Bundle ID cannot use "*". It must be consistent with the Bundle Identifiter of the application to be uploaded.
C. The Wildcard App ID is widely used. You do not need to select the service, Bundle ID, or *
After filling in the information, go to the next step and submit the information.
========================================================== ============
2. Create a certificate. There are two types of certificates: Development and publishing. The development certificate is used for real-machine debugging and the publishing certificate is used to upload the app store;
2.1 create a key file [Create a certificate requires a key file, and then use the mac of this certificate to require this private key]
A. Enable mac key string access, such
B. Enter your email address, select "store to disk", and send it to your email address. This file will be used at last.
C. Enter the file name. Remember this file name.
D. Complete.
2.2 create a certificate [the certificate is finally installed in the mac key access string]
A. select the option in "Certificates" and click "+". Next
B. Select "iOS App Development" for debugging on the real machine And "App Store And Ad Hoc" for uploading the App stroe. The issued certificate is different from the certificate used for debugging on the Development real machine; next step
C. Skip [continue]
D. Click "Choose File ..."
E. Select the key file you just created and remember the name.
F. Create [cenerate]
G. Download and install
========================================================== ============
3. Create a configuration file. [the configuration file is used by xCode]
A. For real-machine debugging, select "Development" and select "Distribution" for uploading App store. Click "+ ".
B. Select "iOS App Development" for debugging on the real machine, upload the App stroe, and select "App Store" for next step.
C. Select the Set ID and click Next.
D. Select a certificate. The certificate type is fixed (development or upload)
D. debugging on a real machine will allow you to choose a drive. A developer can have a maximum of one hundred drivers, that is, you can install and debug your program on a maximum of one hundred Apple mobile phones. If you choose not, you do not need to choose. I tested the iPhone 6 and will automatically generate this drive. Of course, it will be automatically generated only when there is a network. If not, you need to manually add it, and download it to the debugging drive. How to do it will be detailed in the next section "iOS submits the application to App Store process and real machine debugging 2, xCode operation. (This step is not included in the configuration file of the uploaded app store)
E. Give your configuration file a name.
F. Download and install
========================================================== ============
4. Share the same app ID on another Mac machine for real machine debugging.
4.1 first export the private key from the master Mac Machine
A. Open the key access string, select the port key, find the key created above, and name the one you want to remember. Here you will find two public keys, one is a private key. Right-click the private key. Select Export
B. Also name
C. Enter the password to be verified during import.
D. Enter your computer password and export the private key.
4.2 import on the target machine
A. Copy the key just exported from the host to the target machine, open the key access string on the target machine, select the key, and click File> Import project.
B. Select the copied key and click open.
C. enter a password that is difficult to verify. Click it.
E. Download the certificate and double-click Install. Download the configuration file and double-click Install.
Now you can perform real machine debugging on the target machine.