Xamarin Hot Restart Not Working on Windows, Visual Studio 16.9.2

Logan Wenzel 1 Reputation point
2021-03-22T15:15:22.783+00:00

I am trying to do physical testing for an iOS app using Xamarin Forms following this tutorial: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/hot-restart, but I am running into a problem when trying to debug to an iPhone or iPad. There have been no issues doing physical testing on Android through usb or simulation testing through MacInCloud, but I run into this error when deploying to iOS through usb for testing:

"Xamarin.iOS does not support running or debugging the previous built version of your project. Please ensure your solution builds before running or debugging it."

My Apple Developer Account is successfully linked to Visual Studio and I have iTunes installed, so I don't know what the issue could be relating to. I have tried all the common fixes, such as cleaning and rebuilding the file, restarting visual studio, and trying multiple devices.

I appreciate any help I can get.

Update

I just noticed that the tutorial states "It pushes the new changes to the existing app bundle on the debug target,-".
Does this mean the app bundle has to already be released onto the iOS device in order to use Hot Restart? Does releasing it to an iOS device require a Mac machine? I tried changing from 'debug' mode to 'release' mode, but I ran in to an identical error.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    2021-03-23T02:00:37.077+00:00

    Hello,

    Welcome to Microsoft Q&A!

    It seems Hot Restart does not work in current Visual Studio(16.9.x) , the team said there would be a fix in next VS version .

    However , the problem you encounter is another one , you have to select Build and Deploy option with iOS project in configurations.

    80441-capture.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.