This article is to ensure that the completion of the iOS real-computer test certificate A series of import processes under the premise of the operation, if not done, please find the relevant information on the network, here no longer repeat.
1. Add Devices:
Sign in to Apple Developer site: https://developer.apple.com/account/ios/device/deviceList.action, add the Udid for the device you want to install the test app (Apple Limited, add up to 100 devices)
2. Add a publishing Certificate:
Click Distribution in the left navigation bar provisioning profiles to add a new certificate
Select Ad Hoc
Select an app ID, which is the Universal app ID
Select Developer
Add a test device
T
Complete information
Download the certificate locally and double-click to add it to Xcode
At this point, the work on the Apple Developer website is over.
3. Xcode settings
Click the project icon in Xcode and find the configuration settings under Info tab, with Debug and release as the default. Click +, select Duplicate the "Release configuration", to create a new thing name, we recommend the use of "ad hoc distribution"
Click the targets icon and under Build Settings this tab, locate the Code signing section. Set the ad hoc distribution certificate in code Signing identity to the certificate that you just imported to the corresponding test app in Xcode. Be careful not to change the certificates in debug and release.
Ensure that the bundle indentifier inside the Info tab in target has a default value that must match the provision portal input. This is important, otherwise it will go wrong in the future.
In the upper left corner of Xcode, there is a drop-down menu to the right of the Run button, select Device or Simulator, and click Edit schema below the menu. Ensure that the value in build configuration in archive is ad hoc distribution
4. Compile the program
The configuration work ends here. Click on the archive in product, the program starts compiling, after the compilation is finished, pop up the settings box, click Distribute ...
Click the first option save Built products
A. IPA file is generated by creating a folder, locating the corresponding file in the Applications folder, dragging it into itunes, and then dragging it out of itunes. this. IPA can be installed in a test application device that was previously set up.
Make an iOS Ad-hoc test app