Testing and Debugging your iOS Xamarin App

The iOS Simulator provides a range of iOS devices to test your Xamarin Forms application. You can select a required device from the Start Debugging list in Visual Studio.

If you are running Visual Studio on Windows, then before you test with the iOS Simulator, you must pair your Windows machine to an available Mac on the network. To do this, perform the following steps:

  1. In Visual Studio, on the Tools menu, select iOS, and click Pair To Mac.

    This displays the network-attached Mac that you can select for pairing.

  2. Click Connect.

Note: The Mac pairing function requires you to set up Sharing on your Mac.

To test your app on the iOS Simulator, simply select the required device from the list, and click Start Debugging.

You can also connect a physical iOS device to your machine, by using a USB cable or over WiFi. The device should appear in the list, where you can select it and start debugging.

For specific details on debugging and testing an iOS Xamarin Forms App, refer to the following Microsoft documentation:

Notes:

In order to successfully debug or run your app on an iOS device, the device must be provisioned with Apple. For this, you must have an active subscription to Apple’s Developer program, so that you can use either Manual or Automatic Provisioning. Alternatively, you can use Apple’s Free Provisioning option, but it has some limitations. You can refer to the following Microsoft documentation for more information on iOS Provisioning: