Using VS 17.14.0 Preview 1.1 and XCode 16.2 I can not compile a Maui application to a remote iPhone device

David Richards 1 Reputation point
2025-02-27T22:13:06.61+00:00

Using Visual Studio version 17.12 Preview 1 and XCode 16.0 Beta I was able to connect to a remote iPhone and deploy my Maui app to the physical device. I however can not debug the app. So my development environment/MAC is set up properly.

Updating Visual Studio to 17.14.0 Preview 1.1 and using XCode 16.0 Beta or XCode 16.2 and trying to connect to a Remote Device I get the following error:

This debug engine does not support exception conditions. The condition(s) will be ignored.

Object reference not set to an instance of an object.

Normally I get the screen to connect to the MAC engine but I don't even get this screen anymore. There is clearly a problem with the latest version of Visual Studio.

Ever since XCode 16 was released I have not been able to reliably connect to the MAC and deploy and debug my Maui app.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,969 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,921 Reputation points Microsoft External Staff
    2025-02-28T05:20:51.14+00:00

    Hello,

    Preview version is not supported on Q&A. About the preview VS issue, you could report the problem with VS - Report a problem with Visual Studio - Visual Studio (Windows) | Microsoft Learn

    Xcode16.2 support has been included in the latest VS release version (17.13.2).

    Also, you could clean the caches and re-pair to mac after using the latest VS release version.

    Please try removing the ~/Library/Caches/Xamarin/XMA/SDKs/dotnet/ folder on the Mac and removing the %localappdata%\Temp\Xamarin\XMA folder on your Windows machine.

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.