-
Notifications
You must be signed in to change notification settings - Fork 304
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
[iOS] Application crashes on load after updating to the latest version of CommunityToolkit.Mvvm #932
Comments
sorry but i am not installing anything from a random url .... 😆 [EDIT] Above was some spam bot .... i see the comment is removed now. |
Is this only happening on Windows by any chance? Can you try the workaround in #923 (comment)? |
100% reproducible crash for me when running app on Windows. I tried installing the latest WinRT.Runtime as: NuGet\Install-Package Microsoft.Windows.CsWinRT -Version 2.1.1 but that just caused it to crash a bit later in the code. went back to and all is well?It crashed on this line in app.xaml.cs protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); System.TypeInitializationException This exception was originally thrown at this call stack: Inner Exception 1: |
@exquirentibus like I said in the other comment, can you try the workaround in #923 (comment)? |
|
I got the same issue.
When I remark the above code, it works. I reverted back to Ver. 8.2.2 and it works fine. See also: https://stackoverflow.com/questions/78919502/cannot-use-weakreferencemessenger-inside-maui-windows JP |
|
I don't know if this is relevant, but the publish date on the 8.3.0 CommunityToolkit.Mvvm package is very wrong. Sunday, December 31, 1899 (12/31/1899) |
I suspect that it is on purpose to revoke the release of that version? Latest stable in the NuGet manager is 8.2.2..... |
Describe the bug
Hi, after updating the nuGet packet i get the folling error when starting the application:
This occurs only on iOS, for release builds in testflight and debug builds, but not for any of my Android builds.
The way i initialize the toolkit:
The way i register my WeakReferenceMessenger is:
Regression
It worked in version 8.2.0
Steps to reproduce
Expected behavior
That the iOS application does not crash after showing the splash screen.
Screenshots
No response
IDE and version
Other
IDE version
VS For mac and Visual Studio Code on mac.
Nuget packages
Nuget package version(s)
8.3.0
Additional context
No response
Help us help you
Yes, but only if others can assist
The text was updated successfully, but these errors were encountered: