Xamarin - Remote Mac emulation - ios

I'm running Visual Studio 2019 on a Windows 10 machine and have developed a simple Xamarin app.
I've got a Mac mini, with XCode on it, on the same network.
In VS when I select the IOS project and choose debug the Mac mini successfully pairs to the Windows machine. However, nothing is displaying or shows up on the Mac mini.
My understanding is I'd see the app running or being emulated on the Mac at this point.
I'm not getting any error messages on either box or in VS.
Thanks.

Related

Cannot use my iphone as adb in vscode on my windows machine

I have a windows pc and having vs code installed, but I have a IOS phone iPhone 11
I am a flutter developer(App developer) I want to test my created app on my iPhone, My laptop has a type 3.0 cable I used to connect with my iPhone
My iPhone is connected to my laptop using wire, i can control my ios from windows explorer but i cannot see connected device available in my vscode
In explorer
But only 3 devices is connected in vscode
You can't run an app on an iPhone in windows OS. you have to use Mac OS to run or test the IOS app. Apple limited environment of IOS and iPhone.
Unfortunately you can't run flutter apps from a Windows environment to ios the only way is you have a Mac device.
you can check the following question and see the suggestions there it might help you understand why it's not possible to this.
Developing for iOS device in Windows environment with Flutter

visual studio 2022 installs monoframework 6.12.0.174 on mac, then iOS Simulator fails

I use Visual Studio 2022 on Windows for Xamarin development for Android & iOS. I use a Mac Mini with M1 for the iOS builds. All has been working fine for over a month. A few days ago I allowed the MAC to perform an update. Today when I tried to build for iOS, the Pair To Mac dialog said there was a monoframework mismatch and offered to install monoframework 6.12.0.174 on the MAC. Initially I chose Cancel,and then rebooted both machines. The same error occurred when I tried again. This time I allowed the install. After the install completed, every time I try to use the iOS Simulator it hangs as soon as it appears. I would appreciate some direction. I do not know how to fix it and I do not know how to back-out the mono install on the MAC. Please help.
Solution: I updated Visual Studio & Visual Studio for Mac to the current versions. Then found in the following in the Visual Studio ReleaseNotes:
Known Issues
Deploying an iOS app with Visual Studio 2022 and Apple Xcode 13.3 results in a Remote iOS simulator window with a blank/black screen. Workaround: Disable the “Remote Simulator to Windows” check box in the iOS Settings under the Tools - Options menu. The iOS app should deploy correctly on the macOS host.
Following those instructions I disabled the “Remote Simulator to Windows” check box in the iOS Settings under the Tools - Options menu. The iOS app then deployed correctly, but on the macOS host, no longer can it deploy on the Windows machine from the Mac build host as in prior versions.

Xamarin iOS - Debug with crossover cable from windows to mac

I am able to debug my app with WiFi connection; now i am trying to use a crossover cable to debug xamarin ios apps from my windows pc to mac.
I can locate the mac, connect and launch debug on the connected physical device, but during the compilation the process remains in a loop on the ping to the broker.
Does anyone know if you have to set up the network between the two computers in a particular way to make it work?
I'm using:
Visual Studio Enterprise 2019 version 16.11.8 (Windows PC)
Xcode 13.2.1 (Mini mac)
Thanks in advance

Debugging an iOS app on an M1 Mac from Visual Studio for Mac?

With the new M1 Mac:s, it is possible to run iOS apps, even apps distributed via AppCenter.
But, is it possible to deploy and debug a Xamarin iOS app directly to an M1 Mac from Visual Studio for Mac?
Apparently, XCode supports debugging iOS apps directly on the M1 Mac, see here.
In Visual Studio for Mac, looking in the list of devices for iPhone deployment, I can see my USB connected iPhone/iPad devices, but the M1 Mac is not listed. Nor is it listed among the iPhone Simulator devices.
Is there any way to get the Mac listed among the devices so that I can deploy my iOS app directly to the Mac?

Xamarin iOS App deployment

The docs from Xamarin aren't explicit as to where an iOS device needs to be attached. I'm using VS to build a Xamarin app through a remote Mac Builder (connected via VPN) but my iphone is attached to my PC with Visual Studio. Its completely unclear as to whether or not you can deploy a compiled to from the PC you're running Visual Studio on or whether the iOS device needs to be USB'd to the remote Mac running the build.
Even though Xamarin offers developers the way to use C# creating native iOS applications, we also need to pair to a Mac which is required for compiling native iOS applications. So of course if you want to deploy on a real device, you need to connect it to the Mac.
It seems you have already known how to create a provisioning profile. This documentation tells you how to pair to a Mac to deploy applications. Also before doing that you also need to complete the following steps:
On a Windows machine, install Visual Studio 2017
On a Mac, install Xcode and Visual Studio for Mac

Resources