Hi recently started to work my .net maui apps in NET - 8 on iOs, but i having a problem with telerik i can't even load any view with a telerik component, instead I got this error:
Excepción no controlada del tipo 'System.Exception' en Microsoft.iOS.dll: 'Could not create an native instance of the type 'TelerikUI.TKWeakReference': the native class hasn't been loaded.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.'
<No se puede evaluar el seguimiento de la pila de excepciones>
I can't find any info related o similar cases, what can i do?
I don't have this problem in android it only happens in iOS, I'm using NET 8.0 and Telerik 6.5.0 version
Hi Rafael,
Indeed, we haven't been reported such an issue with building on iOS so far. Still, I researched around for similar errors, and it seems it can happen with any static iOS libraries when deployment is executed to IPhone from VS for Windows without pairing to Mac. Is that the same situation you have when experiencing the issue?
I am referring to this Maui issue: https://github.com/dotnet/maui/issues/10800
I look forward to your reply.
Hi Yana,
I am using visual studio code for mac on a mac and I run the application to an ios emulator, at first the application runs, it is not until I try to enter a screen where there are telerik components present this error occurs and the screen does not even load.
As for static libraries, I use some from UIKIT for a custom render shell class, to fix an error I have with the size of the icons in my nav bar. I'm sharing this code with you to see if it might have something to do with it.
The error solved upgrading the Telerik Version to 7.0.0 i installed the version in a windows device and paired to a mac via visual studio i could run the app and ios and use the Telerik Components Without problem, now i'm going to install it in mac a try to run the app visual studio code for mac.
Update:
It worked in mac too :).
Note:
The steps for replicate the error are create and maui 8 app and then try to use the Telerik Components in this project with the 6.5.0 telerik version