Error MSB4018 The "HotRestart.Tasks.DetectSigningIdentity" task failed unexpectedly Using .net maui application

Raju Gadda 66 Reputation points
2022-03-25T11:10:53.717+00:00

.Net Maui application not deploying in iphone physical device using windows machine. Paired both the laptop windows and Macbook air. Getting the following error.

Error MSB4018 The "HotRestart.Tasks.DetectSigningIdentity" task failed unexpectedly.
System.IO.FileLoadException: Could not load file or assembly 'Xamarin.iOS.Windows.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
File name: 'Xamarin.iOS.Windows.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at Xamarin.iOS.HotRestart.Tasks.DetectSigningIdentity.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

OhMyGod C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets    20
Please help on this.
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,795 questions
{count} votes