Xcode7 Real-machine commissioning (developer) and P12 configuration
Regarding the real machine aspect, the first is the real machine debugging, because a program development is certainly inseparable from the real machine debugging, before Xcode7 wants to carry on the real machine debugging needs to join the developer plan, needs to carry on the certificate configuration, but after Xcode7 wants to carry on the real machine debugging is very simple, No need to configure the certificate can be directly to the real-machine debugging, but do not join the developer program of the real-machine debugging has high limitations, such as can not be seamless debugging, to fix errors, not packaging and so on
Category of developer account
- Personal account ($ ==688)
- Function: can be real machine debugging, packaging testing, program release
- Advantages: Fast application speed, give money on the line, 1-3 business days can
- Cons: Team management is not possible
- company account ($) ==688
- function: can be real machine debugging, packaging test, the program published
- advantages: can be team management
- cons:
- Application complex: Requires all certifications
- application cycles are large (TransUnion and enterprise certification processes are long)
- Enterprise account ($299)
- features: real-machine debugging, packaging test
- Pros:
- You can install the Apple device inside the enterprise without having to go through the AppStore audit
- team management
- can iterate versions quickly
- cons:
- apply for complexity, need to be certified by the certification
- The application period is large (TransUnion and enterprise certification process is longer)
- can't publish apps to AppStore
-
I. Join the developer program steps
- 1. go to the developer homepage
- 2. Join the developer program
Join the developer program
- 3. On the next page, select Join
Join
- 4. Introduction to account categories
Account Type
- 5. Agree to Apple's relevant agreement
Agree to the relevant agreement
- 6. Select the type of purchase account
Type of account
- 7. Fill in your personal information
Personal information
- 8. Confirmation of personal information
Confirmation information
- 9. Click Buy
Buy
- 10. Re-Login Confirmation information
Confirmation information
- 11. Fill in your credit card related information
Fill out credit card related information
- 12. After clicking Continue, the money will be deducted directly. In 1-3 business days email notification of purchase success
two. Configuring Real-Computer debuggingI. Certificate-related configuration
- 1. Enter the Member Center
- < Span style= "color: #0000ff;" > developer home
- Click member Center
click
- login has been added to the developer program AppleID
-
select account
- go to next page
enter
- Click Certificates, Identifiers & Profiles, go to the next page
enter
- Click any option in the iOS location to go to the next page
two. Configuring certificate-related content
- 1. Configure the certificate file
- Function: Used to decide which computer can be debugged by the real machine
- Result: A certificate file is generated and the file needs to be installed in the keychain
- Attention:
- Certificates can be configured with up to two
- If you want to multi-person real-machine debugging, you can generate P12 files (explained in detail later)
- steps:
- Select any option from the certificate location, click on the right + sign to go to the next page
-
-
-
- Currently select the real-Machine debug certificate, and click Continue
Select the real-Machine Debug certificate
- This page is a CSR file (certificate request signing file) is required when generating the certificate
certificate request signature file
-
-
- open keychain
keychain
-
request certificate
- fill in the information, generate the CSR file
-
build
- certificate generated successfully, click Download Certificate
download certificate
2. Configure AppID
- Role: Used to determine which apps can be debugged on the real machine
- Result: A new file is not generated and will then be used to generate a profile using the AppID
- Type:
- Clear AppID: Can do special functions: such as in-purchase/remote push
- Fuzzy AppID: Easy to test, but can't do special functions
- step:
- Select identifiers, and the right + number
- fill in the description of AppID for your own distinction
fill in the description of the AppID
- Select the type of AppID, if only the real machine test can choose the fuzzy
- OK to generate the corresponding AppID
appid
- Build succeeded
build succeeded
-
3. Configuring device
- role: used to determine which real machines can be used for real-machine debugging
- result: no new files are generated. You will then need to select the device
- step:
- Select all in devices and the + number
-
- Udid Get steps for settings:
- insert a real machine into your computer
- open Xcode, select Window-->deivces
-
4. Configuration profile
- effect: Connect the three items you just configured
- result: New files are generated and need to be downloaded and installed (double-click the installation Automatically installed into Xcode)
- step:
- Select the profile and click the plus sign on the right
- Choose the type of profile, different types have different effects
-
- Select the certificate file that you just generated
- Select the device you just added
- name the description file
- generate the corresponding profile, download and install it
5. Summary:
- Final two files generated
- Certificate file
- Description file
- Install Certificate: can be viewed in keychain
- Installation profile: In the acquisition can be viewed: preferences, account location out (can find themselves)
Configuring the P12 fileI. Why do I need P12 files?
- Under normal circumstances a developer account can generate only two CER certificates
- CER certificates are tied to the computer at build time
- If a computer does not have a valid CER certificate, it cannot be debugged by a real machine
- Apple to solve for many people can be real machine debugging, but not unlimited generation of certificates, launched the P12 file
two. The role of the P12 file
- The P12 certificate acts as the previous CER certificate
- Used to verify the identity of our computer, so that the computer has the ability to debug the real machine
three. How to generate a P12 certificate
- Locate the previously installed CER certificate (in the keychain) and right-click Export
- Select a directory to store
- Enter Password generation
The contents of this chapter are derived from http://www.jianshu.com/p/cd1b4e55731a
Xcode7 Real-Machine commissioning (developer) and P12 configuration