How to debug MAUI.iOS app from VS Windows 2022

Huynh Than 65 Reputation points
2024-04-01T14:27:21.1466667+00:00

Hi, I'm trying to debug the MAUI.iOS app from VS Windows 2022. I connected to the remote mac successfully. This Mac mini is using Xcode 15.2 and have VS Mac 2022 installed.

When I ran, I saw it deployed successfully to the Mac, and the app also opened the splash screen. After that, it stopped suddenly. I can confirm the app works fine when deploying directly on Mac. Below is the log:

INFO: Disposing input and output streams...

INFO: Closing debug connection from device (USB)

The app has been terminated.

ERROR: An error occurred when writing to the output stream. Details: Unable to read data from the transport connection: interrupted.

ERROR: An error occurred while writing to the debug stream. Details: Cannot access a disposed object.

Object name: 'UsbStream'.

INFO: Closing debug connection from remote debugger (TCP)

INFO: Disposing input and output streams...

INFO: Disposing console and debugger streams...

Developer technologies .NET .NET MAUI
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2024-04-08T01:52:26.2066667+00:00

    Hello,

    You debug the app via Local Device. Please plug your iPad into the Mac and make sure your Windows machine has paired to the Mac, then you could try to select the remote device (your iPad) to debug instead of Local Device.

    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.

    0 comments No comments

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.