The short answer
Short answer: the iOS simulator exists only on a Mac, and it can run on a remote Mac's desktop. Physical devices are different: you cannot plug a phone into a Mac that is somewhere else. If you still use Visual Studio 2022, Hot Restart can install a Debug build on an iPhone connected to your own PC.
Which steps require macOS
What must be on macOS
- The iOS simulator. It ships with Xcode. Visual Studio's "Remote iOS Simulator for Windows" only shows the Mac's simulator display on Windows, and the second step in its documented usage is to Pair to Mac first.
- Device deployment through the Mac toolchain. In Microsoft's documentation, the first step for running on a device from the command line is connecting the device to the local Mac with a USB cable.
One case that does not need a Mac: Hot Restart
Microsoft's documentation says Hot Restart can deploy a MAUI app from Visual Studio 2022 to an iOS device connected to Windows, without a Mac build host. It requires iTunes to be installed and a paid Apple Developer Program membership. The limits are also stated clearly:
- Only the Debug configuration can be deployed. Production builds still need a Mac.
- Static iOS libraries, Storyboards and XIBs are not supported. Asset catalogs are not supported, so the app shows the default .NET icon and launch screen.
- Visual Studio 2026 does not support it. Microsoft recommends Pair to Mac for newer versions.
So if all you need is to verify C# logic on your own iPhone, and you are still on Visual Studio 2022, this step does not necessarily require renting a Mac.
How to do it on a remote Mac
Install the simulator runtime on the remote Mac
Open Xcode and accept the license agreement. Microsoft's installation docs note that if the simulator does not start installing automatically, you install the simulator runtime you need by hand under "Xcode > Settings > Components". Menu names may change between Xcode versions.
Run in the default simulator from the command line
In the MAUI app project directory, run:
dotnet build -t:Run -f net8.0-iosReplace the target framework with the actual value from your project. The command restores dependencies, compiles, and launches the app in the default simulator.
Target a specific simulator
First get the simulator's UDID. The command given in the documentation is:
/Applications/Xcode.app/Contents/Developer/usr/bin/simctl listThen specify it with the
_DeviceNameproperty:dotnet build -t:Run -f net8.0-ios -p:_DeviceName=:v2:udid=YOUR_UDIDNote that the
:v2:udid=prefix is the form for simulators. For physical devices, the documentation passes the device UDID as-is and adds-p:RuntimeIdentifier=ios-arm64.Use Visual Studio Code when you need breakpoints
Install Visual Studio Code and the .NET MAUI extension on the remote Mac. The extension brings C# Dev Kit with it automatically. Per the documentation, use ".NET MAUI: Configure Apple" in the command palette to check that the Xcode environment is ready. C# Dev Kit requires signing in with a Microsoft account. See its official FAQ for the license terms.
Pick a version when several Xcodes are installed
MAUI has Xcode version requirements, and sometimes two versions need to live side by side. The documentation recommends selecting one with an environment variable in the current terminal session, for example
export DEVELOPER_DIR=/Applications/Xcode_version.app. To make it permanent, put it in your shell profile.Verify on a real device through TestFlight instead
A remote Mac cannot be connected to the iPhone in your hand. The workable approach is to upload the build, install it from TestFlight on your own phone, and track down problems through logs and crash reports. The flow is in uploading MAUI to TestFlight. For why this route has no breakpoints, see can a remote Mac debug on a real device.
FAQ
Can the Remote iOS Simulator for Windows work with a rented Mac?
It depends on Pair to Mac, which means your Windows machine has to reach that Mac over SSH. You can turn on Remote Login yourself in System Settings, but the network configuration cannot be changed. Whether it is reachable from the public internet depends on the delivery notes, so check with support before ordering. If it cannot connect, watch the Mac's own simulator window through the remote desktop.
Is the simulator smooth to use through a remote desktop?
The picture travels over the remote desktop session, so smoothness depends on your local network connection. We do not give delay figures. You can keep writing code locally and only switch to the remote desktop when you need to see the result. See is Xcode laggy on a remote Mac.
What can the simulator not test?
Hardware-dependent features such as the camera, Bluetooth, NFC, some sensors and push delivery are not covered by the simulator. If your app relies heavily on them and you need step-by-step breakpoints, a remote Mac is not a good fit. You need a Mac within arm's reach.
The Remote iOS Simulator for Windows is stuck on connecting. What now?
Microsoft's documentation gives a fix: disconnect Pair to Mac, close Xcode and the simulator on the Mac, erase the simulator devices and create them again. The exact commands are in the Troubleshooting section of the Remote iOS Simulator docs.
Related
- How do I build an iOS ipa from a .NET MAUI app without a Mac?
- How do I upload a .NET MAUI app to TestFlight and the App Store without a Mac?
- Can I debug on a real iPhone with a remote Mac?
- Is Xcode laggy on a remote Mac?
- How do I debug Flutter iOS on the simulator and a real iPhone without a Mac?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support