When doing Android development, the real machine debugging is not a problem, through the USB phone connected to the computer on it. But when it comes to iOS development, it's not that simple.
First you need to sign up for an Apple developer account and pay $99. Let me briefly list the necessary procedures, which can be done at the developer Center as prompted.
1 Login to the Developer center to create an app ID;
2 Register your device (iphone or ipad) in the Developer Center, you need to install an app to get the device Uuid,app store search can get a lot of such apps;
3 Create a certificate, the certificate is divided into two types of development certificate and publishing certificate. Use the development certificate in the commissioning phase;
4 Create a provisioning profile, as well as the development and release of two, here to create a development version. When creating, you need to select a developer certificate and select the device that allows debugging.
OK, connect the device with USB to your computer, select your device in Xcode, run the app, and you'll be ready for real-computer debugging.
The process of iOS development for real-computer debugging