Replies: 3 comments 7 replies
-
Seems to be an issue in one of the dependencies not supporting AOT, not Avalonia. |
Beta Was this translation helpful? Give feedback.
-
I encountered the same issue where MSDI couldn't be worked. But I created a MAUI app, its DI worked normally. So I'm curious why Avalonia's doesn't work, and they are using the same .net 9 version and nuget package version. |
Beta Was this translation helpful? Give feedback.
-
Update: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I am using DI from Microsoft.Extensions.DependencyInjection and IOC from CommunityToolkit. For some reason it crashes the app at start. It works on desktop platforms and Android without any issues.
To Reproduce
Create empty cross platform Avalonia app. In the iOS project, Change the AppDelgate class to this:
Deploy the app on iOS device, launch it and watch it crash and burn.
Expected behavior
No crash should occur during app start.
Avalonia version
11.3.2
OS
iOS
Additional context
Here the debugger log:
Beta Was this translation helpful? Give feedback.
All reactions