Skip to content

Instantly share code, notes, and snippets.

@AnatolyUA
Last active February 4, 2021 11:46
Show Gist options
  • Save AnatolyUA/1df403e291db30d19d06a1aa280370b8 to your computer and use it in GitHub Desktop.
Save AnatolyUA/1df403e291db30d19d06a1aa280370b8 to your computer and use it in GitHub Desktop.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[NSCoder decodeObjectOfClasses:forKey:]: This method is only implemented for coders which allowKeyedCoding.
Native stack trace:
0 CoreFoundation 0x00007fff20421af6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48
2 Foundation 0x00007fff20741b8a -[NSCoder decodeObjectOfClasses:forKey:error:] + 0
3 WebKit 0x00007fff28883bcb -[WKWebViewConfiguration initWithCoder:] + 87
4 Sample.Core.Mobile.iOS 0x0000000100fb0359 xamarin_dyn_objc_msgSend + 217
5 ??? 0x000000011508da00 0x0 + 4647868928
at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.8.0.3/src/Xamarin.iOS/ObjCRuntime/Runtime.cs:407
at ObjCRuntime.Runtime.throw_ns_exception (System.IntPtr exc) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/runtime/Delegates.generated.cs:126
at at (wrapper native-to-managed) ObjCRuntime.Runtime.throw_ns_exception(intptr)
at at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr(intptr,intptr,intptr)
at WebKit.WKWebViewConfiguration..ctor (Foundation.NSCoder coder) [0x00013] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.8.0.3/src/Xamarin.iOS/WebKit/WKWebViewConfiguration.g.cs:80
at at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:936
at at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr(intptr,intptr,intptr)
at WebKit.WKWebViewConfiguration..ctor (Foundation.NSCoder coder) [0x00013] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.8.0.3/src/Xamarin.iOS/WebKit/WKWebViewConfiguration.g.cs:80
at at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:936
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00018] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:944
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:926
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:960
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/Common/src/CoreLib/System/Reflection/ConstructorInfo.cs:22
at DryIoc.Interpreter.TryInterpret (DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, System.Boolean useFec, System.Object& result) [0x0009f] in D:\Dev\DryIoc\src\DryIoc\Container.cs:2329
at DryIoc.Interpreter.TryInterpretMany (DryIoc.IResolverContext r, System.Collections.Generic.IList`1[T] argExprs, System.Boolean useFec, System.Object[]& args) [0x00043] in D:\Dev\DryIoc\src\DryIoc\Container.cs:2731
at DryIoc.Interpreter.TryInterpret (DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, System.Boolean useFec, System.Object& result) [0x00091] in D:\Dev\DryIoc\src\DryIoc\Container.cs:2326
at DryIoc.Interpreter.TryInterpretAndUnwrapContainerException (DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, System.Boolean useFec, System.Object& result) [0x00021] in D:\Dev\DryIoc\src\DryIoc\Container.cs:2312
at DryIoc.Container.ResolveAndCacheFactoryDelegate (System.Type serviceType, DryIoc.IfUnresolved ifUnresolved) [0x000e0] in D:\Dev\DryIoc\src\DryIoc\Container.cs:288
at DryIoc.Container.DryIoc.IResolver.Resolve (System.Type serviceType, DryIoc.IfUnresolved ifUnresolved) [0x0001d] in D:\Dev\DryIoc\src\DryIoc\Container.cs:230
at DryIoc.Resolver.Resolve (DryIoc.IResolver resolver, System.Type serviceType) [0x00000] in D:\Dev\DryIoc\src\DryIoc\Container.cs:5884
at Prism.DryIoc.DryIocContainerExtension.Resolve (System.Type type) [0x00000] in d:\a\1\s\Source\Xamarin\Prism.DryIoc.Forms\DryIocContainerExtension.cs:57
at Prism.PrismApplicationBase+<>c__DisplayClass26_0.<SetDependencyResolver>b__0 (System.Type type) [0x00000] in d:\a\1\s\Source\Xamarin\Prism.Forms\PrismApplicationBase.cs:154
at Xamarin.Forms.Internals.DependencyResolver+<>c__DisplayClass6_0.<ResolveUsing>b__0 (System.Type type, System.Object[] objects) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\DependencyResolver.cs:19
at Xamarin.Forms.Internals.DependencyResolver.Resolve (System.Type type, System.Object[] args) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\DependencyResolver.cs:24
at Xamarin.Forms.Internals.DependencyResolver.ResolveOrCreate (System.Type type, System.Object source, System.Type visualType, System.Object[] args) [0x00019] in D:\a\1\s\Xamarin.Forms.Core\DependencyResolver.cs:43
at Xamarin.Forms.Internals.DependencyResolver.ResolveOrCreate (System.Type type) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\DependencyResolver.cs:37
at Xamarin.Forms.Internals.Registrar`1[TRegistrable].GetHandler (System.Type type, System.Type visualType) [0x00025] in D:\a\1\s\Xamarin.Forms.Core\Registrar.cs:73
at Xamarin.Forms.Internals.Registrar`1[TRegistrable].GetHandlerForObject[TOut] (System.Object obj) [0x0002c] in D:\a\1\s\Xamarin.Forms.Core\Registrar.cs:111
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:226
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:115
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:49
at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () [0x0008f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:237
at at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper(intptr,intptr)
at UIKit.UIViewController.get_View () [0x0002a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.8.0.3/src/Xamarin.iOS/UIKit/UIViewController.g.cs:3265
at Xamarin.Forms.Platform.iOS.PageRenderer.get_NativeView () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:103
at Xamarin.Forms.Platform.iOS.PageRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:119
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:227
at Xamarin.Forms.Platform.iOS.NavigationRenderer.CreateViewControllerForPage (Xamarin.Forms.Page page) [0x00008] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:376
at Xamarin.Forms.Platform.iOS.NavigationRenderer.OnPushAsync (Xamarin.Forms.Page page, System.Boolean animated) [0x0001d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:352
at Xamarin.Forms.Platform.iOS.NavigationRenderer.<ViewDidLoad>b__47_0 (Xamarin.Forms.Page p) [0x00024] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:239
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021
at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.8.0.3/src/Xamarin.iOS/Foundation/NSAction.cs:178
at at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.8.0.3/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.8.0.3/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at Sample.Core.Mobile.iOS.Application.Main (System.String[] args) [0x00001] in /Users/mac/Documents/Sample.Core.Mobile/Sample.Core.Mobile.iOS/Main.cs:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment