-
Notifications
You must be signed in to change notification settings - Fork 1
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 crashes on xcode version 16.1 and using a simulator using ios 18.0 #7
Comments
Thank you for report. Seems like Clarity released newer fix release so I will try to bump the package and test it on our Demo app As a potential workaround, can you try to build the app with XCode 16.2 ? |
Thanks for the swift reply @Kebechet. I've just upgraded to xcode 16.2 and the maui packages to 9.0.14 but I'm still receiving the error I logged earlier this week Thank you again for your work and support, hopefully this is an easy fix on your side |
I have updated iOS binding to |
Hi @Kebechet thank you so much for updating it so quickly. I've just tested it and unfortunately got the same error, do you have any further thoughts or recommendations? ObjCRuntime.RuntimeException |
interesting 🤔 It crashes during the build or during runtime ? |
It occurs during runtime, it opens the app briefly and then crashes. (By briefly i mean under 1 second) |
even the demo app from my previous comment ? |
Hi @mattpearcefanhub I haven't had the time to fork it and test it yet. And won't be able to do so in the next few hours, but I can get back to you when i can. |
Hi @mattpearcefanhub |
Hello @Kebechet and @mattpearcefanhub. We are facing the same crash with "Failed to marshal the Objective-C", "drawInContext", "Microsoft_Maui_Platform_MauiCALayer" etc. and have been fighting this for a couple of days now. I am fairly confident, that this crash happens as soon as you place a MAUI RadioButton anywhere on the page. Your demo app does not crash because it consists only of razor pages. If you remove the BlazorWebView from the MainPage and add a RadioButton there somewhere, it also crashes with the same exception of this ticket (tested this just now). For iOS there is no direct equivalent to a radio button so MAUI does some custom rendering of a button. That night be the reason this crash is pretty obscure and does not happen to a lot of people. We already copied what you did in this repository, to use the newer SDK version 3.0.3 which has a bugfix labelled
but that also did not resolve the issue. We are at a means end here and don't know how to proceed other than maybe redesigning our page to use something other than a RadioButton. Issue is happening locally on macOS 15.3, Xcode 16.2, iOS 18.2 (Simulator and iPhone), iOS 17.5 (Simulator) Same result with MAUI 8.0.91 as with the latest 9.0.30 @mattpearcefanhub can you confirm that you are also using a RadioButton? If not, can you maybe try to single out one component that crashes your app? |
I've installed the most recent packages provided, however it consistently crashes on iOS. I'm running dotnet 9, maui 8.0.100 and the most recent packages for this wrapper.
My sim is iphone 16, running on iOS 18.0
Crash log:
The text was updated successfully, but these errors were encountered: