- 1.Create a certificates request in local machine, save to disk.
- 2.Create AppID.
- 3.Connect the iPhone to Mac, get the device UIUD.
- 4.Create Device.
- 5.Create Profile,then download.
- 6.Double-click profile, then build and run project. probably you are asked to fix the issue by Xcode. Click "fix" then compile success and run again.
reference link: http://code.tutsplus.com/tutorials/how-to-test-your-app-on-an-ios-device--mobile-13861