Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot Restart for iOS not working in Preview 17.2.1 #5605

Closed
RichardMarsh opened this issue Mar 28, 2022 · 6 comments
Closed

Hot Restart for iOS not working in Preview 17.2.1 #5605

RichardMarsh opened this issue Mar 28, 2022 · 6 comments
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/iOS 🍎 t/bug Something isn't working

Comments

@RichardMarsh
Copy link

RichardMarsh commented Mar 28, 2022

Description

Hot Restart for iOS was working before the 17.2 update. I updated when Preview 14 of MAUI was released and since then I've not been able to get it to work again.

Today I updated to preview 17.2.1 and still same issue occurs. See below
image

Steps to Reproduce

  1. Upgrade VS to 17.2.1
  2. Enable Hot Restart for iOS
  3. Try to deploy or build to local device

Version with bug

Preview 14 (current)

Last version that worked well

Preview 13

Affected platforms

iOS

Affected platform versions

NA

Did you find any workaround?

No response

Relevant log output

4>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018: The "HotRestart.Tasks.DetectSigningIdentity" task failed unexpectedly.
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018: 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)
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018: File name: 'Xamarin.iOS.Windows.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018:    at Xamarin.iOS.HotRestart.Tasks.DetectSigningIdentity.Execute()
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018: 
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018:
@RichardMarsh RichardMarsh added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Mar 28, 2022
@jfversluis jfversluis changed the title Hot Reload for iOS not working in Preview 17.2.1 Hot Restart for iOS not working in Preview 17.2.1 Mar 28, 2022
@jfversluis jfversluis added area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/iOS 🍎 and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Mar 28, 2022
@jfversluis
Copy link
Member

I guess from the context you are talking about Hot Restart as opposed to Hot Reload :)

Also mentioned here a fix should be out soon, thanks!

@RichardMarsh
Copy link
Author

I guess from the context you are talking about Hot Restart as opposed to Hot Reload :)

Also mentioned here a fix should be out soon, thanks!

Thank you for the feedback. Wasn't sure if was related or not. That said isn't 17.2.1 the servicing release?

@enricoe73
Copy link

enricoe73 commented Mar 28, 2022

Same thing here - Version 17.2.0 Preview 2.1 with a Iphone connected to USB. Running with Mac pair simulator it's ok.
image

@MichelLaplane
Copy link

Same here trying to debug or execute an app build with template .NET MAUI App (Preview) with VS 2022 Version 17.2.0 Preview 2.1 (no mosidifcation have been made, just try to execute afater generation from template :

Build started...
1>------ Build started: Project: MauiApp3, Configuration: Debug Any CPU ------
1>You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018: The "HotRestart.Tasks.DetectSigningIdentity" task failed unexpectedly.
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018: 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)
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018: File name: 'Xamarin.iOS.Windows.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018: at Xamarin.iOS.HotRestart.Tasks.DetectSigningIdentity.Execute()
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018:
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\15.2.302-preview.14.122\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(20,3): error MSB4018:
1>Done building project "MauiApp3.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Is there a way to retrun to preview 13 ?

@BlueRaja
Copy link

BlueRaja commented Apr 4, 2022

@jfversluis Will that fix also fix iOS Hot Restart in Xamarin Forms, which is suffering from the same issue?

@MichelLaplane
Copy link

@BlueRaja Yes you're right I got the same problem with Xamarin.

@ghost ghost locked as resolved and limited conversation to collaborators May 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants