Wireless Deployment of Xamarin apps to your iOS devices

If you’re anything like me you probably have an iPhone cable near you at all times when working on a Xamarin app. It will probably look like it has seen better days but it still works doesn’t it?

Because of the frequent use my iPhone cables start to break at some point but I usually carry on like a trooper. Some scotch tape also helps to make some last-minute lifespan extensions. When the cable eventually breaks I’m usually screwed because I never thought to buy a new one.

Introducing Wireless Deployment

All of the above is now a thing of the past with the introduction of Wireless Deployment in Visual Studio for Mac. And the beauty of it is that it takes you no additional effort to configure in VS. It’s currently only available in the Preview version (VS for Mac 7.4 Preview 2 and Xamarin iOS 11.8) and only takes a bit of configuration in Xcode. However you can use to debug with your feet up on your desk and no cables to worry about! Breakpoints will be hit and everything will work as if the device is connected through USB.

How do you get it? Open Xcode and go up to Window > Devices and Simulators.  Make sure you’ve connected your device through a USB cable to be able to enable it to be discovered on the network. Once you see your device tick the Connect via network box and wait for it to connect to the network (as indicated by the globe icon. Disconnect the USB cable and it should show up in Visual Studio for Mac as a connected device!

Update:
As pointed out to me on Twitter by Pierce Boggan (Microsoft): It even works on Visual Studio for Windows which makes it even more awesome than it already is 🙂

Update 2:
Now with added documentation!

  • Pingback: Dew Drop - February 13, 2018 (#2664) - Morning Dew()

  • Marina Katz

    HI, i have the following environment- i have a Mac sitting in company’s office place connected to the local network and a PC that i work on in another place(another country), connected with VPN to the office’s network. Now i want to debug my xamarin app on the actual device. For my understanding, with the new feature i should have the device be paired with the Mac and then be sent it to me for debugging wireless. My only concern is that the ios device should be on the same wireless network as the MAC. If so, this configuration will not work for me as the mac and the device that i have locally device in my hand will not be on the same wifi. Am i wrong? Thank you!!