To the official website https://developer.apple.com/, click Member Center, log in with the account and password you just purchased, you will see the interface as shown below:
Click on the first column, the second icon (Certificates,identifiers & Profiles) to the following interface:
Click on any of the children of iOS apps, as shown in the following screen:
Click on the certificates below, and the right half will appear as shown above, then click on the + sign in the upper right corner to jump to:
Pull the interface down and you'll see:
Click the Blue Font World Developer Relations Certificate Authority, the following file will be downloaded: Applewwdrca.cer file
Double-click the file to open the following interface and realistically install the Apple Worldwide Developer relatios Cer .... certificate
After installation, under key channeling access, select certificate processing, request a certificate from a certification authority
Click .... After requesting the certificate, skip to the following interface:
Fill in the following:
Click Continue, continue all the way down, and finally generate the following files on the desktop: certificatesigningrequest.certsigningrequest
Well, the first phase has been completed, and in the second phase, the next step is to use our mobile device for commissioning, the commissioning computer, the debug app, and the purchased account information to be bundled together to generate several certificates for Xcode and mobile device recognition for real-time testing.
Once again, reach the following page:
Select the iOS App development in development and click Continue
Continue to click on continue to know that the following interface appears:
Click chose file to upload the files that we just generated under the re-key access and click on the following screen generate
Click on the claim and jump to the following screen, click Download
After clicking Download, the following files will be downloaded: Ios_development.cer then double-click Install
Add your own device to the developer account, click Devices, and then click the + sign in the top right corner
After clicking to enter the following screen, give your device a name (whatever), the following udid fill in the udid you want to test the real machine
Here is the test equipment Udid Search method: Open itunes, with the mouse click on the location of Ecid can see Udid.
As shown below:
Create a new Application ID: Click Identifiers, click the + sign in the upper right corner to the following screen:
In the name out fill in the app ID description, generally is casually write, always pull down, fill in the following location your app ID, the format is generally COM. ., other default, click Continue,submit
Bind app Mac phone and developer account: Click Provisioning Profiles, then click the + sign in the upper right corner to the following page
Select iOS app development, then click Continus and select the App ID you just created on the following page, click Contine
After completing the previous step, jump to the following page, bind the Mac, select the certificates just generated, click Continue
Select the bundled phone, click Continue
Give him a name, click Generate.
Jump to the following screen, download for later use
OK, so that all the operations on the account are completed, the next only need to be configured on Mac locally, first with Xcode open
Open as shown
Enter the following screen, right-click on the device
Click on Show provisioning profiles to enter the following screen
Click on the + sign to add, will just down the following file, add in:
After adding, we are only the last step, we can debug the real machine
Open the project's plist file and change the non-bundle identifier in the right-hand table to the COM we just set. . (My com.ljw.helloworld just now)
OK, we're done, we can finally have a happy real machine debugging