Real-machine testing needs to be prepared
1. Certificate
2. iphone or ipad
3, to developer.apple.com registered developer account (no money)
--------------------------------------------------------------------------------------------------------------- -----------
Steps:
1. Login to Developer Center developer.apple.com
2, to the developer Center home
You can click
Jump to Central Administration
Click above to enter Certificate Management Center
Development test the above four are used sequentially
Certificates is to create a management certificate
Identifiers is creating management engineering-related bindings I
Devices is related to creating a management test device ( Note: You need it when testing, and you don't need it when you publish )
Provisioning Profiles is the final creation of a build test or a publishing certificate.
3. Generate certificates
1), prepare beforehand: generate. CSR File
To Mac OS machine Launchpad
Check "system root certificate"
Then select [Keychain Access]->[Certificate Assistant]->[Request a certificate from a certification authority ....]
Select the certificate is "save to disk", then the user e-mail address can be a random name, the common name is the best to make a meaningful distinction between the name, CA e-mail address to fill in their own mailbox. The user email address can be the same as the CA e-mail address, so you can accept the message anyway.
Save the file to the desktop (for easy querying), the first. Cersigningrequest. The other two are generated by the following steps: A. cer is the certificate that waits until certificates creates the generated certificate, and the other. Mobileprovision is the provisioning profiles generated certificates.
The required preparation file for generating. CER is now complete.
2), create a. cer certificate
Select the + sign on the right and jump to the next step, as it is the development test check "IOS App development"
Otherwise the option production below is selected (not truncated), click "Continue" to go to the next step
Go ahead, and then to the file where you want to select the CSR, the CSR is the. cersigningrequest file that was just generated in this machine, see the abbreviation for the suffix. It's the CSR.
Go on
Continue to the page where you downloaded the. cer, and you can download the generated. cer file, and then copy it to the folder on the desktop that you just downloaded, with the suffix. cer.
So far. CER file has been generated
4, the creation of identifiers, that is, engineering-related identification
Follow the instructions, select the right + Create
To fill out the page is divided into four parts, need to fill in three parts
The first part: App ID description Fill in the name, this one.
Part II: APP ID prefix no need to fill in
The third part: Select the exact appid binding, the Bundle ID is filled in.
( Note: The bundle ID will be the same as the bundle identifier in the project Info.list, not the same as the same)
You can customize a naming convention yourself: Reverse site name + project name such as: Com.apple.mall
Where can I find it in the project?
Part IV: Select the service you want to use and continue
This identifiers has been generated:
5. Create Devies
1), prepare beforehand, obtain the udid number of the equipment
Method One:
Link the device to a Mac computer with a data cable, then automatically jump to itunes and click on the phone icon above
If you see the serial number there, click with the mouse
Get the following serial number
Prevent errors, you can directly copy Udid
2), create devices device
Click the + sign in the top right corner to start creating test bindings
In, fill in the name of the number, copy the udid you just got, and then continue
This binds the device to be tested.
6. Generate Provisioning Profiles
The front is for the final preparation here, click on the right of the + sign
Choose the first one under development, and then continue
Choose the AppID you just established
Choose a certificate.
Choose your test equipment.
Fill in the name and proceed to the completion page.
The final certificate has been generated
Folders that can be downloaded and downloaded to the desktop:
The suffix is. mobileprovision.
7. Use of mobileprovision certificates
1), Certificate signature
Target of the project, when you see the signing (Debug) and release versions, select the import profile for provisioning profiles ..., and then you can import the certificate that you just generated.
2), commissioning Select equipment
Then there is the test, which is the time to link the device through the data cable to the computer, then select the corresponding device in Xcode.
Finally, click on the triangle above or command+r to run the debugger on the device (of course, if you are allowed to access the certificate or not, and enter the Apple password authorization to do no problem)
At this point the real machine test steps have been written, if you want to publish, the above steps in addition to devies do not need, the others are similar, but all to choose distrution instead of Develoption, and set AppID that step, can be shared, testing the time set, Just choose this right when you publish, because the project is still the project. Of course, if you want to publish to AppStore, it's not itunesconnect.apple.com. 2 steps to create app information and package a release. See the release process step for details.
From for notes (Wiz)
iOS real-computer testing (real-machine testing with certificates)