VS 17.3.0 Preview 2.0 Not paring with Mac - MAUI

Ganesh 1 Reputation point
2022-07-06T09:58:06.863+00:00

I am trying to develop a MAUI application for iOS & Android with Razor Class Library.
While trying to Pair my Mac with Visual Studio I face issue. In log I get below errors

Xamarin.Messaging.Integration.State.IOSServerStateContextExtensions Error: 0 : An error occurred while trying to get the current Xcode location in the connected Mac

Xamarin.VisualStudio.IOS.Messaging.MacOsxVersionValidator Warning: 0 : An unexpected error occurred while trying to get environment information for the connected Mac

When I try to connect without opening any .sln file, I could pair the Mac without any issue. With any project open, I face issue.

Kindly help to resolve the issue.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,928 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,260 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,546 Reputation points Microsoft Vendor
    2022-07-07T09:59:11.647+00:00

    Hi @GP-3748 , welcome to Microsoft Q&A forum. Please make sure that you have Xcode installed and then try to clear the XMA cache on the Mac. Here’s the related doc: Clearing the Broker, IDB, Build, and Designer Agents on the Mac.

    1 person found this answer helpful.