刚刚更新到最新版本的Xamarin工作室和Xamarin.iOS。现在我收到了这个错误:
执行本机代码时获得了SIGABRT。这通常表明 单声道运行时或其中一个本机库中的致命错误 由您的应用程序使用。
嗯,实际上它甚至都不是错误。模拟器崩溃,并且没有出现可操作的错误。 10分钟前一切都很好......
我在Mac OSX上。
有什么想法吗?谢谢!
修改
2015-05-08 08:46:58.951 ReflectMobileiOS [1761:93636]未处理的托管异常:
无法加载文件或程序集' Splat.Portable'或其中一个依赖项。该系统找不到指定的文件。 (System.IO.FileNotFoundException)
在System.AppDomain.Load(System.Reflection.AssemblyName assemblyRef,System.Security.Policy.Evidence assemblySecurity)[0x00000] in:0
在System.AppDomain.Load(System.Reflection.AssemblyName assemblyRef)[0x00000] in:0
在System.Reflection.Assembly.Load(System.Reflection.AssemblyName assemblyRef)[0x00000] in:0
在ObjCRuntime.Runtime.CollectReferencedAssemblies(System.Collections.Generic.List 1 assemblies, System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0
at ObjCRuntime.Runtime.CollectReferencedAssemblies (System.Collections.Generic.List
1个程序集,System.Reflection.Assembly程序集)[0x00000] in:0
在ObjCRuntime.Runtime.CollectReferencedAssemblies(System.Collections.Generic.List`1程序集,System.Reflection.Assembly程序集)[0x00000]中:0
在ObjCRuntime.Runtime.RegisterEntryAssembly(System.Reflection.Assembly entry_assembly)[0x00000] in:0
在ObjCRuntime.Runtime.RegisterEntryAssembly(IntPtr a)[0x00000] in:0
在ObjCRuntime.Runtime.register_entry_assembly(IntPtr程序集)[0x00000] in:0
at(包装器native-to-managed)ObjCRuntime.Runtime:register_entry_assembly(intptr)
2015-05-08 08:46:58.953 ReflectMobileiOS [1761:93636]批评:Stacktrace:
2015-05-08 08:46:58.953 ReflectMobileiOS [1761:93636]批评: 本机堆栈跟踪:
2015-05-08 08:46:58.962 ReflectMobileiOS [1761:93636] critical:0 ReflectMobileiOS 0x001baee7 mono_handle_native_sigsegv + 311 2015-05-08 08:46:58.963 ReflectMobileiOS [1761:93636]关键:1 ReflectMobileiOS 0x001c1c31 sigabrt_signal_handler + 129 2015-05-08 08:46:58.963 ReflectMobileiOS [1761:93636] critical:2 libsystem_platform.dylib 0x07fec03b _sigtramp + 43 2015-05-08 08:46:58.963 ReflectMobileiOS [1761:93636]关键:3 ??? 0xffffffff 0x0 + 4294967295 2015-05-08 08:46:58.963 ReflectMobileiOS [1761:93636]关键:4 libsystem_sim_c.dylib 0x07d83a5a abort + 156 2015-05-08 08:46:58.963 ReflectMobileiOS [1761:93636]关键:5 ReflectMobileiOS 0x00350b46 xamarin_unhandled_exception_handler + 342 2015-05-08 08:46:58.964 ReflectMobileiOS [1761:93636]关键:6 ReflectMobileiOS 0x001bb75b mono_invoke_unhandled_exception_hook + 91 2015-05-08 08:46:58.964 ReflectMobileiOS [1761:93636]关键:7 ReflectMobileiOS 0x001ba5e8 mono_handle_exception_internal + 6200 2015-05-08 08:46:58.964 ReflectMobileiOS [1761:93636]关键:8 ReflectMobileiOS 0x001b8da9 mono_handle_exception + 41 2015-05-08 08:46:58.964 ReflectMobileiOS [1761:93636] critical:9 ReflectMobileiOS 0x0014fcd8 mono_x86_throw_exception + 136 2015-05-08 08:46:58.964 ReflectMobileiOS [1761:93636]关键:10 ??? 0x130d8f57 0x0 + 319655767 2015-05-08 08:46:58.965 ReflectMobileiOS [1761:93636]关键:11 ??? 0x131522d0 0x0 + 320152272 2015-05-08 08:46:58.965 ReflectMobileiOS [1761:93636]关键:12 ??? 0x131521e8 0x0 + 320152040 2015-05-08 08:46:58.965 ReflectMobileiOS [1761:93636]关键:13 ??? 0x1315216c 0x0 + 320151916 2015-05-08 08:46:58.965 ReflectMobileiOS [1761:93636]关键:14 ??? 0x13152198 0x0 + 320151960 2015-05-08 08:46:58.965 ReflectMobileiOS [1761:93636]关键:15 ??? 0x13152198 0x0 + 320151960 2015-05-08 08:46:58.966 ReflectMobileiOS [1761:93636]关键:16 ??? 0x1315208c 0x0 + 320151692 2015-05-08 08:46:58.966 ReflectMobileiOS [1761:93636]危急:17 ??? 0x13151fb8 0x0 + 320151480 2015-05-08 08:46:58.966 ReflectMobileiOS [1761:93636]关键:18 ??? 0x13151f6c 0x0 + 320151404 2015-05-08 08:46:58.966 ReflectMobileiOS [1761:93636]危急:19 ??? 0x13126b90 0x0 + 319974288 2015-05-08 08:46:58.966 ReflectMobileiOS [1761:93636]关键:20 ReflectMobileiOS 0x0034f8e0 xamarin_register_entry_assembly + 32 2015-05-08 08:46:58.967 ReflectMobileiOS [1761:93636]关键:21 ReflectMobileiOS 0x0034d471 xamarin_main + 1889 2015-05-08 08:46:58.967 ReflectMobileiOS [1761:93636]关键:22 ReflectMobileiOS 0x00074ff1 main + 113 2015-05-08 08:46:58.967 ReflectMobileiOS [1761:93636] critical:23 libdyld.dylib 0x07cdfac9 start + 1
执行本机代码时获得了SIGABRT。这通常表明 单声道运行时或其中一个本机库中的致命错误
答案 0 :(得分:1)
得到了再次工作。结果发现没有找到NuGet包。读了它,它再次起作用。
答案 1 :(得分:0)
在我将相机权限添加到info.plist之前,我得到了一个非常相似的SIGABRT。让我发疯,直到我弄明白。
<key>NSCameraUsageDescription</key>
<string>Please allow the camera to be used for Scanning Barcodes</string>