Hi,
Why I astarted getting the below error when running my iOS app?
can anyone help please..
System.TypeInitializationException: The type initializer for 'Microsoft.Maui.Controls.Shapes.Shape' threw an exception. ---> System.MissingFieldException: Field not found: Microsoft.Maui.IPropertyMapper`2<Microsoft.Maui.IShapeView, Microsoft.Maui.Handlers.IShapeViewHandler> Microsoft.Maui.Handlers.ShapeViewHandler.Mapper Due to: Could not find field in class
--- End of inner exception stack trace ---
at at Microsoft.Maui.Controls.Hosting.AppHostBuilderExtensions.RemapForControls(MauiAppBuilder builder)
at at Microsoft.Maui.Controls.Hosting.AppHostBuilderExtensions.SetupDefaults(MauiAppBuilder builder)
at at Microsoft.Maui.Controls.Hosting.AppHostBuilderExtensions.UseMauiApp[App](MauiAppBuilder builder)
at MyApp.MauiProgram.CreateMauiApp() in /Users/jassim/Projects/MyApp/MyApp/MauiProgram.cs:8
at MyApp.AppDelegate.CreateMauiApp() in /Users/jassim/Projects/MyApp/MyApp/Platforms/iOS/AppDelegate.cs:8
at at Microsoft.Maui.MauiUIApplicationDelegate.WillFinishLaunching(UIApplication application, NSDictionary launchOptions)
at at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName)
at at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass)
at MyApp.Program.Main(String[] args) in /Users/jassim/Projects/MyApp/MyApp/Platforms/iOS/Program.cs:13
Thanks,
Jassim