Build Your iOS App
Before you can remotely debug an iOS application using the Remote Debugging feature, you need to build the application.
The process of building your application compiles the code and installs the application on the selected device. From there on you can interact with your application and debug it by setting breakpoints at the functions that handle specific actions.
Provision Profile and Code Signing
- Before you move on to build and test your application you must make sure you have properly configured your provision profile.
- This enables signing the code. This is a mandatory part of the compilation process. Otherwise the app is not be installed on the device.
Register a Device
If the device you connected via a Remote Debugging session is not listed under your developer account, Xcode prompts you to add it.
Build and Run Your Application
Once a device has been connected to your machine via a Remote Debugging session, and you have properly configured your provision profile and enabled Automatically Manage Signing in the General settings tab of your app (see screenshot), you can install and run the application on the device.
Manually Test the Application
Once the app has been built and deployed, switch back to the device that you have previously connected via Remote Debugging. You see the app on the device reflection and be able to interact with it manually.
To close the app, simply stop the running process from within Xcode.
You are now ready to debug your app for better development process and for troubleshooting issues if necessary.