NET9 MAUi connection from Visual Studio to iMac

Enrico Rossini 206 Reputation points
2025-07-23T16:19:39.2+00:00

In my iMac, I have installed NET9 and the workload for MAUI, latest version.

enter image description here

I created a shiny MAUI project based on NET9. When I try to run the application from Visual Studio to a simulator such as iPhone 15 iOS 18.1, I get this error

MSBuild was unable to connect to the Mac with Address='192.168.1.104' and User='Enrico Rossini'. This connection is separate from Visual Studio and without it the project can't build. Please try building again or report this problem if the issue persists

enter image description here

I built the project multiple times, clean the obj and bin folders, restart all machines.

Developer technologies | Visual Studio | Setup
{count} vote

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 79,101 Reputation points Volunteer Moderator
    2025-07-23T18:47:09.2166667+00:00

    you need to pair your Mac. see:

    https://learn.microsoft.com/en-us/dotnet/maui/ios/pair-to-mac?view=net-maui-9.0

    basically VS2022 uses SSH to execute shell commands on the Mac. The pairing is basically configuring the VS2022 SSH component (ip, username and password). Once the connection is working, VS will check for an Xcode install. to build it copies files to Mac and runs Xcode.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.