iOS is sentimental, nothing to do so many steps to play, make I will not get, unremitting efforts after still finished, summed up,
Avoid new detours. Apple's temper is like this, only to learn slowly
1. Generate CSR (Developer certification request)
Open Keychain Access
Certificate Assistant, keychain Access, requesting a certificate from a certification authority
User Email Address: Your developer email
Request is: Storage to hard disk
Check let me specify key pair information
Go on
Go on
Complete
2. Generate iOS Developer certificate
Go to iOS Developer Center: https://developer.apple.com/membercenter/index.action
Click iOS entry under Dev Centers
Under IOS Developer program, click
Certificates, Identifiers & Profiles Enter
Click Certificates to enter
Click All under Certificates.
Click on the + sign on the right
Choose
IOS APP Development Options
Next, and then upload the Certificatesigningrequest.certsigningrequest, the certificate will be generated
3. Download the certificate, double-click Install, so you have iOS developer authorization
4. Generate AppID
Or on this page, click on the app IDs under identifiers
Click on the + sign on the right
The first is to enter a name, just enter the second input box to enter your bundle identifier for example: Com.shocker
The following options do not
5. Create an Apple ID in Xcode (in order for Xcode to do the processing for you later)
Xcode->preference->accounts
Click on the lower left corner + sign to select Add Apple ID
Enter your developer account and password to add
6. Connect the real Machine
On the right side of the Xcode run button to select the simulator, this time with a real machine for example (IPHONE5S)
Run, you will find your program running on the real machine
7. Find out how it works in the future
Click Projects, target-> Build Settings
Search for code sign and choose your developer account on the right 6
iOS developer to real machine test