1

I'm setting up my Xamarin development environment and there are issues with iOS debugging. I'd like to have a way to debug my app on iPhone, but it's not so easy. Here's the ways I know:

  1. Install macOS virtual machine on Windows and connect iPhone physically over USB to Windows host. But it doesn't seem legal to install macOS as virtual machine on non-Apple branded hardware (see https://kb.vmware.com/s/article/1000131 and Using Mac in a virtual machine legality?)
  2. Use Apple hardware. Not a cheap option, and I don't want to migrate to macOS only to debug iOS apps.
  3. Use cloud Mac, e.g. https://www.macincloud.com. But I haven't found a way for wireless debugging iOS applications. As I see, iPhone must be physically attached to macOS hardware, which is not possible in this case.

The most convinient options would be #3. It would be great to debug iOS app on a real device using Mac in cloud. Is that possible?

1

It is possible to debug iOS apps on an iPhone wirelessly over WiFi, yes. This is a supported way of debugging in Xcode.

With Xamarin you can also debug over WiFi if you enable "Debug over WiFi" in the "iOS Debug" Build settings. However with Xamarin you need to launch the application over the USB cable. So you cannot do a fully wireless setup there.

Doing wireless debugging with a "cloud Mac" would probably require setting up a VPN connection or similar that makes it appear as though the cloud Mac is on your LAN. And it would only work with Xcode - not Xamarin.

A different approach would be to buy for example the Eltima USB Network Gate. Connect the iPhone to your local PC and use the software to connect that USB port over the network to your "cloud Mac" where it would appear as though the iPhone was physically connected. This should (at least in theory) allow you to launch and debug apps using Xamarin.

0

First of all, yes its possible to debug application wirelessly. If you have Xcode 9 or later version then you will be able to do that.

Here are steps to follow:-

1 Open Xcode

2 Choose Window > Devices and Simulators

3 Click on Device and select your iPhone by connecting with cable to your Mac

4 In right column you will select “Connect via Network” as shown in below image.

Note - Your iOS device and Mac should be connected within same network area.

I got reference from this post

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .