Open metal450 opened 1 month ago
Looks like someone else encountered this & reported it back in May here: https://github.com/xamarin/xamarin-macios/issues/20658
Is this "Sample Project" not expected to work?
Addendum: Made sure to update Visual Studio to the latest version (17.10.5). Sample project still crashes.
Is this "Sample Project" not expected to work?
It does. But mobile .NET SDK is frequently breaks, sometimes Apple does it, and sometimes Visual Studio.
To isolate this problem, can you:
dotnet run
(it's a bit complicated with .NET though)Tools > Options > Debugging > Hot Reload
.Probably not related to this issue, but also another known problem with simulator:
iossimulator-x64
runtime identifier, by default iossimulator-arm64
is used.Hi, thanks for the reply
Try to disable VS Hot Reload, as it is known to be hardcoded to MAUI, and is hard to get working even with this plugin
My whole intention/goal in adding Maui to my Avalonia app is to be able to use Hot Restart (per https://github.com/AvaloniaUI/Avalonia/discussions/14220#discussioncomment-9853495). If I don't use Hot Restart, and instead build & run through a remote Mac, then it indeed works. However, that sort of defeats the purpose here - in that case might as well just have Avalonia alone ;)
Try to run without Visual Studio (VSCode is fine, Rider better, but ideally just dotnet run
Tried it with Rider, but I couldn't find a way to enable Hot Restart there - perhaps that's Visual Studio specific.
Probably not related to this issue, but also another known problem with simulator
I was using a physical tethered device via Hot Restart (not simulator)
Thanks again
Hi,
When trying out the AvaloniaSample.iOS sample project (Visual Studio 17.10.3 for Windows, Phone SE 3rd gen tethered for "Hot Reload"):
No class inheriting from a valid Application Delegate found in /var/mobile/Containers/Data/Application/457228A1-2559-44E4-810B-4C91859D26BE/Documents/AvaloniaSample.iOS.content/AvaloniaSample.iOS.dll
.If I try the MauiSample project, it works - this only occurs with the AvaloniaSample.
What could be wrong?