当我尝试调试iOS应用时,我得到了这个:
执行本机代码时获得了SIGSEGV。这通常表明 单声道运行时或其中一个本机库中的致命错误 由您的应用程序使用。
我试图搜索一些解决方案,但它们对我不起作用。当我在没有调试的情况下启动应用程序时Android版本工作正常,我可以调试它,只有iOS才有问题。我在Windows上调试,我与我的Mac配对。
07:40:51.605 MyApp.iOS[2865:30981] Xamarin.iOS: Unable to locate assembly
'Xamarin.Interactive' (culture: '')
07:40:51.605 MyApp.iOS[2865:30981] Xamarin.iOS: Unable to locate assembly
'Xamarin.Interactive' (culture: '')
07:40:51.606 MyApp.iOS[2865:30981] Xamarin.iOS: Unable to locate assembly 'Xamarin.Interactive' (culture: '')
07:40:51.606 MyApp.iOS[2865:30981] Xamarin.iOS: Unable to locate assembly 'Xamarin.Interactive' (culture: '')
07:40:51.607 MyApp.iOS[2865:30981] critical: Stacktrace:
07:40:51.608 MyApp.iOS[2865:30981] critical:
Native stacktrace:
07:40:51.610 MyApp.iOS[2865:30981] critical: 0
MyApp.iOS 0x000000010f195334 mono_handle_native_crash + 244
07:40:51.610 MyApp.iOS[2865:30981] critical: 1 MyApp.iOS 0x000000010f1a4960 mono_sigsegv_signal_handler + 288
07:40:51.611 MyApp.iOS[2865:30981] critical: 2 libsystem_platform.dylib 0x000000011fa5af5a _sigtramp + 26
07:40:51.611 MyApp.iOS[2865:30981] critical: 3 ??? 0x000000011b14b10b 0x0 + 4749308171
07:40:51.611 MyApp.iOS[2865:30981] critical: 4 MyApp.iOS 0x000000010f1d8b0f assembly_binding_info_parsed + 383
07:40:51.611 MyApp.iOS[2865:30981] critical: 5 MyApp.iOS 0x000000010f25c9ad assembly_binding_end + 61
07:40:51.611 MyApp.iOS[2865:30981] critical: 6 MyApp.iOS 0x000000010f25c2ca end_element + 42
07:40:51.611 MyApp.iOS[2865:30981] critical: 7 MyApp.iOS 0x000000010f343bff monoeg_g_markup_parse_context_parse + 479
07:40:51.611 MyApp.iOS[2865:30981] critical: 8 MyApp.iOS 0x000000010f25b4d4 mono_config_parse_xml_with_context + 180
07:40:51.612 MyApp.iOS[2865:30981] critical: 9 MyApp.iOS 0x000000010f25b790 mono_config_parse_file_with_context + 128
07:40:51.612 MyApp.iOS[2865:30981] critical: 10 MyApp.iOS 0x000000010f25ba09 mono_config_parse_assembly_bindings + 105
07:40:51.612 MyApp.iOS[2865:30981] critical: 11 MyApp.iOS 0x000000010f1d8962 mono_domain_parse_assembly_bindings + 114
07:40:51.612 MyApp.iOS[2865:
30981] critical: 12 MyApp.iOS 0x000000010f1d995b mono_assembly_load_full_nosearch + 2203
07:40:51.612 MyApp.iOS[2865:30981] critical: 13 MyApp.iOS 0x000000010f1d5688 mono_assembly_load_full_internal + 40
07:40:51.612 MyApp.iOS[2865:30981] critical: 14 MyApp.iOS 0x000000010f1d52d5 mono_assembly_load_reference + 517
07:40:51.612 MyApp.iOS[2865:30981] critical: 15 MyApp.iOS 0x000000010f1dc55d mono_class_from_typeref_checked + 733
07:40:51.612 MyApp.iOS[2865:30981] critical: 16 MyApp.iOS 0x000000010f1ea56e mono_class_get_checked + 174
07:40:51.613 MyApp.iOS[2865:30981] critical: 17 MyApp.iOS 0x000000010f1dca7b mono_class_create_from_typedef + 715
07:40:51.613 MyApp.iOS[2865:30981] critical: 18 MyApp.iOS
0x000000010f1ea51c mono_class_get_checked + 92
07:40:51.613 MyApp.iOS[2865:30981] critical: 19 MyApp.iOS 0x000000010f1eb20a mono_class_from_name_checked_aux + 986
07:40:51.613 MyApp.iOS[2865:30981] critical: 20 MyApp.iOS 0x000000010f1dc363 mono_class_from_typeref_checked + 227
07:40:51.613 MyApp.iOS[2865:30981] critical: 21 MyApp.iOS 0x000000010f1ea56e mono_class_get_checked + 174
07:40:51.613 MyApp.iOS[2865:30981] critical: 22 MyApp.iOS 0x000000010f24ea1b mono_metadata_parse_type_internal + 1419
07:40:51.614 MyApp.iOS[2865:30981] critical: 23 MyApp.iOS 0x000000010f1e0b1a mono_field_resolve_type + 586
07:40:51.614 MyApp.iOS[2865:30981] critical: 24 MyApp.iOS 0x000000010f1df923 mono_class_setup_fields + 467
07:40:51
.614 MyApp.iOS[2865:30981] critical: 25 MyApp.iOS 0x000000010f1e00ef mono_class_init + 463
07:40:51.614 MyApp.iOS[2865:30981] critical: 26 MyApp.iOS 0x000000010f2667b2 mono_class_vtable_full + 226
07:40:51.614 MyApp.iOS[2865:30981] critical: 27 MyApp.iOS 0x000000010f2688d7 mono_class_vtable + 23
07:40:51.614 MyApp.iOS[2865:30981] critical: 28 MyApp.iOS 0x000000010f0f681d type_commands_internal + 5197
07:40:51.615 MyApp.iOS[2865:30981] critical: 29 MyApp.iOS 0x000000010f0e8a86 debugger_thread + 2134
07:40:51.615 MyApp.iOS[2865:30981] critical: 30 MyApp.iOS 0x000000010f2b2390 start_wrapper + 704
07:40:51.615 MyApp.iOS[2865:30981] critical: 31 libsystem_pthread.dylib 0x000000011fa6c6c1 _pthread_body + 340
2
018-04-04 07:40:51.615 MyApp.iOS[2865:30981] critical: 32 libsystem_pthread.dylib 0x000000011fa6c56d _pthread_body + 0
07:40:51.615 MyApp.iOS[2865:30981] critical: 33 libsystem_pthread.dylib 0x000000011fa6bc5d thread_start + 13
Windows版本:
VS Studio 2017 15.6.4 Microsoft Visual Studio社区2017 版本15.6.4 VisualStudio.15.Release / 15.6.4 + 27428.2015 Microsoft .NET Framework 版本4.7.02556
=== Visual Studio的单调调试===
4.9.11-pre(71eb098)
=== Xamarin ===
4.9.0.752(0faa808ee)
=== Xamarin Designer ===
4.10.58(cee1369d0)
=== Xamarin.Android SDK ===
8.2.0.16(HEAD / a78295902)
=== Xamarin.iOS和Xamarin.Mac SDK ===
11.8.1.28(3979d08)
的Mac:
===适用于Mac的Visual Studio社区2017 ===
版本7.4.1(版本48) 安装UUID:97bf3b32-4332-487e-8509-e2fd8ab64b1a 运行: 单声道5.8.1.0(2017-10 / 6bf3922f3fd)(64位) GTK + 2.24.23(罗利主题)
Package version: 508010000
=== Xamarin.Profiler ===
版本:1.6.1
=== Apple Developer Tools ===
Xcode 9.2(13772) 构建9C40b
=== Xamarin.Mac ===
版本:4.2.1.28(Visual Studio社区)
=== Xamarin.iOS ===
版本:11.8.1.28(Visual Studio社区)
=== Xamarin Inspector ===
版本:1.4.0
答案 0 :(得分:0)
(对不起,但我不能这样做。)
我有新的错误。
2018-04-05 14:33:37.010 MyApp.iOS [31419:914744] critical:0 MyApp.iOS 0x000000010405f334 mono_handle_native_crash + 244 2018-04-05 14:33:37.010 MyApp.iOS [31419:914744]关键:1 MyApp.iOS 0x000000010406e960 mono_sigsegv_signal_handler + 288 2018-04-05 14:33:37.010 MyApp.iOS [31419:914744] critical:2 libsystem_platform.dylib 0x0000000114924f5a _sigtramp + 26 2018-04-05 14:33:37.011 MyApp.iOS [31419:914744]关键:3 ??? 0x000000012b2d2000 0x0 + 5019344896 2018-04-05 14:33:37.011 MyApp.iOS [31419:914744] critical:4 MyApp.iOS 0x00000001040a2b0f assembly_binding_info_parsed + 383 2018-04-05 14:33:37.011 MyApp.iOS [31419:914744] critical:5 MyApp.iOS 0x00000001041269ad assembly_binding_end + 61 2018-04-05 14:33:37.011 MyApp.iOS [31419:914744] critical:6 MyApp.iOS 0x00000001041262ca end_element + 42 2018-04-05 14:33:37.011 MyApp.iOS [31419:914744] critical:7 MyApp.iOS 0x000000010420dbff monoeg_g_markup_parse_context_parse + 479 2018-04-05 14:33:37.011 MyApp.iOS [31419:914744] critical:8 MyApp.iOS 0x00000001041254d4 mono_config_parse_xml_with_context + 180 2018-04-05 14:33:37.011 MyApp.iOS [31419:914744] critical:9 MyApp.iOS 0x0000000104125790 mono_config_parse_file_with_context + 128 2018-04-05 14:33:37.012 MyApp.iOS [31419:914744] critical:10 MyApp.iOS 0x0000000104125a09 mono_config_parse_assembly_bindings + 105 2018-04-05 14:33:37.012 MyApp.iOS [31419:914744] critical:11 MyApp.iOS 0x00000001040a2962 mono_domain_parse_assembly_bindings + 114 2018-04-05 14:33:37.012 MyApp.iOS [31419:914744] critical:12 MyApp.iOS 0x00000001040a395b mono_assembly_load_full_nosearch + 2203 2018-04-05 14:33:37.012 MyApp.iOS [31419:914744]关键:13 MyApp.iOS 0x000000010409f688 mono_assembly_load_full_internal + 40 2018-04-05 14:33:37.012 MyApp.iOS [31419:914744] critical:14 MyApp.iOS 0x00000001040dc49f ves_icall_System_Type_internal_from_name + 319 2018-04-05 14:33:37.012 MyApp.iOS [31419:914744]危急:15 ??? 0x0000000132625db8 0x0 + 5140274616 2018-04-05 14:33:37.012 MyApp.iOS [31419:914744]危急:16 ??? 0x0000000132867493 0x0 + 5142639763