Grial-UI-Kit-Support
Grial-UI-Kit-Support copied to clipboard
Exception when debug on iOS
Hello,
I get an exception when I debug on iOS, in "Main.cs":
Exception: System.Exception: Could not initialize an instance of the type 'UIKit.NSDataAsset': the native 'initWithName:' method returned nil. It is possible to ignore this condition by setting MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure to false.
This exception occurs when I navigate from a List page to the Detail's page, through this:
public async void OnCardTapped(object sender, EventArgs args)
{
var selectedAgendaEvent = (AgendaEvent)((VisualElement)sender).BindingContext;
var agendaEventView = new AgendaEventDetailsPage(selectedAgendaEvent);
await Navigation.PushAsync(agendaEventView);
}
If I relauch the app after the deployment, this works fine: I can navigate to the Detail's page.
Is this normal?
@Goldstrike we never experience that error so far. Are you experiencing that issue in the emulator? a device? Which version of iOS are you using?
Can you share a solution where we can reproduce the issue? The smaller the better. If you can, send it to l r o d r i g u e z at uxdivers.com
System.ArgumentNullException: Value cannot be null. Parameter name: image occurred in Main.cs for iOS project