有什么方法可以解决Xamarin iOS应用崩溃问题?

时间:2019-03-23 15:01:47

标签: ios xamarin webview wkwebview

Xamarin.iOS:收到未处理的ObjectiveC异常:NSInternalInconsistencyException完成传递给-[LoginViewController webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:]的处理程序

`Foundation.MonoTouchException:抛出Objective-C异常。名称:NSInternalInconsistencyException原因:传递给-[LoginViewController webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:]的完成处理程序未调用 本机堆栈跟踪:     0 CoreFoundation 0x00000001c9709ebc + 252     1个libobjc.A.dylib 0x00000001c88d9a50 objc_exception_throw + 56     2 CoreFoundation 0x00000001c9610484 + 0     3 WebKit 0x00000001d90e8588 + 144     4个WebKit 0x00000001d90f3c60 + 40     5 WebKit 0x00000001d92205a8 + 28     6 libsystem_blocks.dylib 0x00000001c919ea44 _Block_release + 152     7 libdispatch.dylib 0x00000001c9142484 + 16     8 libdispatch.dylib 0x00000001c90ee9a4 + 1068     9 CoreFoundation 0x00000001c9699ce4 + 12     10 CoreFoundation 0x00000001c9694bac + 1964年     11 CoreFoundation 0x00000001c96940e0 CFRunLoopRunSpecific + 436     12图形服务0x00000001cb90d584 GSEventRunModal + 100     13 UIKitCore 0x00000001f68a4c00 UIApplicationMain + 212     14 com.mobileapp 0x0000000103050978 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 328     15 com.mobileapp 0x0000000103003d4c UIKit_UIApplication_Main_string___intptr_intptr + 44     16 com.mobileapp 0x0000000103003d0c UIKit_UIApplication_Main_string___string_string + 172     17 com.mobileapp 0x0000000102c3ab14 SimpleVidyoConnectorIOS_Application_Main_string__ + 164     18 com.mobileapp 0x0000000102f6b5b8 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 248     19 com.mobileapp 0x0000000103d33890 mono_jit_runtime_invoke + 904     20 com.mobileapp 0x0000000103db7914 mono_runtime_invoke_checked + 148     21 com.mobileapp 0x0000000103dbd7f8 mono_runtime_exec_main_checked + 120     22 com.mobileapp 0x0000000103d13d68 mono_jit_exec + 268     23 com.mobileapp 0x0000000103eab954 xamarin_main + 2220     24 com.mobileapp 0x0000000102c38ae4主+ 96     25 libdyld.dylib 0x00000001c9152bb4 + 4

在/Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/ObjCRuntime/Runtime.cs:398中的ObjCRuntime.Runtime.ThrowNSException(System.IntPtr ns_exception)[0x00000]   在/Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/runtime/Delegates.genic.cs:128中的ObjCRuntime.Runtime.throw_ns_exception(System.IntPtr exc)[0x00000]   在(包装本机到托管的)ObjCRuntime.Runtime.throw_ns_exception(intptr)   在(包装器托管到本地)UIKit.UIApplication.UIApplicationMain(int,string [],intptr,intptr)   在/Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS中的UIKit.UIApplication.Main(System.String [] args,System.IntPtr主体,System.IntPtr委托)[0x00005] /UIKit/UIApplication.cs:79   在/Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS中的UIKit.UIApplication.Main(System.String [] args,System.StringPrincipalClassName,System.String委托ClassName)[0x0002c] /UIKit/UIApplication.cs:63   在/Users/ravitiwari/work/personal/mobile/VL.Mobile.IOS/Main.cs:14中的SimpleVidyoConnectorIOS.Application.Main(System.String [] args)[0x00002] ---从之前引发异常的位置开始的堆栈结束跟踪---   在(包装器托管到本地)UIKit.UIApplication.UIApplicationMain(int,string [],intptr,intptr)   在/Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS中的UIKit.UIApplication.Main(System.String [] args,System.IntPtr主体,System.IntPtr委托)[0x00005] /UIKit/UIApplication.cs:79   在/Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS中的UIKit.UIApplication.Main(System.String [] args,System.StringPrincipalClassName,System.String委托ClassName)[0x0002c] /UIKit/UIApplication.cs:63   在/Users/ravitiwari/work/personal/mobile/VL.Mobile.IOS/Main.cs中的SimpleVidyoConnectorIOS.Application.Main(System.String [] args)[0x00002]:14 0 CoreFoundation 0x00000001c9709ebc + 252     1个libobjc.A.dylib 0x00000001c88d9a50 objc_exception_throw + 56     2 CoreFoundation 0x00000001c9610484 + 0     3 WebKit 0x00000001d90e8588 + 144     4个WebKit 0x00000001d90f3c60 + 40     5 WebKit 0x00000001d92205a8 + 28     6 libsystem_blocks.dylib 0x00000001c919ea44 _Block_release + 152     7 libdispatch.dylib 0x00000001c9142484 + 16     8 libdispatch.dylib 0x00000001c90ee9a4 + 1068     9 CoreFoundation 0x00000001c9699ce4 + 12     10 CoreFoundation 0x00000001c9694bac + 1964年     11 CoreFoundation 0x00000001c96940e0 CFRunLoopRunSpecific + 436     12图形服务0x00000001cb90d584 GSEventRunModal + 100     13 UIKitCore 0x00000001f68a4c00 UIApplicationMain + 212     14 com.mobileapp 0x0000000103050978 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 328     15 com.mobileapp 0x0000000103003d4c UIKit_UIApplication_Main_string___intptr_intptr + 44     16 com.mobileapp 0x0000000103003d0c UIKit_UIApplication_Main_string___string_string + 172     17 com.mobileapp 0x0000000102c3ab14 SimpleVidyoConnectorIOS_Application_Main_string__ + 164     18 com.mobileapp 0x0000000102f6b5b8 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 248     19 com.mobileapp 0x0000000103d33890 mono_jit_runtime_invoke + 904     20 com.mobileapp 0x0000000103db7914 mono_runtime_invoke_checked + 148     21 com.mobileapp 0x0000000103dbd7f8 mono_runtime_exec_main_checked + 120     22 com.mobileapp 0x0000000103d13d68 mono_jit_exec + 268     23 com.mobileapp 0x0000000103eab954 xamarin_main + 2220     24 com.mobileapp 0x0000000102c38ae4主+ 96     25 libdyld.dylib 0x00000001c9152bb4 + 4`

0 个答案:

没有答案