-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Help with issue on iOS #332
Comments
Does "suddenly" here correspond to any update? Framework? Build tools? Library? |
Hi @mgravell thank you so much for the reply, really appreciate it because I'm totally stuck and been going crazy over this issue because I just cannot narrow down to what is wrong. I do not see that we introduced anything new rather than some .NET nuget packages updates from 8.0.6 to 8.0.7 and Microsoft.AspNetCore.Components.WebView.Maui and Microsoft.Maui.Controls to 8.0.70 instead of 8.0.40 but I have tried reverting those upgrades as well and still getting the error above. I have been removing chunks of code step-by-step to narrow down what is wrong and so far only found that yeah if I essentially remove my gRPC services then it works but nothing else. I also don't understand what the error message actually mean. I tried removing that particular service but then it complains on my other gRPC service instead. And worse is that it works perfect in the Browser, Android and Windows, the gRPC code is unchanged so I do not see that we made some conceptual mistake in the code. But rather some iOS issue because its only in iOS we get this error. |
is it possible to catch the exception at all, and access the |
Where would I introduce the try-catch though? In .razor somewhere I suppose? The error log above I have extracted from the web console. Not entirely sure how it works but I suppose this error gets thrown in the "at" inject statement of the .razor page. It seems like if I load any other page that doesn't have the gRPC service injected it does work to load that page. |
After many hours of trying out different things and looking through the logs I noticed that the MAUI package microsoft.net.sdk.ios had been updated some weeks ago. There seems to be a bug in it (version 17.2.8078) that causes this issue. Related issue here: xamarin/xamarin-macios#20910 When I specified exact version the same way they did it now works again. |
We are using this library and it works great but now suddenly on iOS we get the following error:
Anyone has any idea on what this means and how I can fix it? Really appreciate any help. This worked previously and the same code works great on Android and Windows so only on iOS we get this error. We are using .NET 8.0.303 and AOT.
The text was updated successfully, but these errors were encountered: