Got a SIGABRT while executing native code

cjw1115cjw1115 ✭✭CNMember ✭✭

**
I wana use a custom control of ios, so I use xcode to build a static lib(.a), then I user sharpie to generate the ApiDefinition.cs. Finally ,I create a ios binding project and add all of those files. When I add a reference for my main project and run it in my iphone, the app is crash,beblow is log info.

By the way, the generated file 'ApiDefiniton.cs ' has very big size which is 3.1MB. I don't know why it is, I just do that according to tutorial.
https://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/walkthrough/
Here is log
**

Launching 'BJUTDUHelperXamarin.iOS' on 'xamarin-iphone'...
2017-11-12 12:09:02.742 BJUTDUHelperXamariniOS[366:223363] error: * Assertion at /Users/builder/data/lanes/5481/9a9f0541/source/xamarin-macios/external/mono/mono/metadata/metadata.c:1122, condition `idx < t->rows' not met
2017-11-12 12:09:02.743 BJUTDUHelperXamariniOS[366:223363] critical: Stacktrace:

2017-11-12 12:09:02.743 BJUTDUHelperXamariniOS[366:223363] critical:
Native stacktrace:
2017-11-12 12:09:03.461 BJUTDUHelperXamariniOS[366:223363] critical: 0 BJUTDUHelperXamariniOS 0x0000000103aff860 mono_handle_native_crash + 224
2017-11-12 12:09:03.462 BJUTDUHelperXamariniOS[366:223363] critical: 1 libsystem_platform.dylib 0x0000000183f5d94c sigtramp + 68
2017-11-12 12:09:03.462 BJUTDUHelperXamariniOS[366:223363] critical: 2 libsystem_pthread.dylib 0x0000000183f64ef8 pthread_kill + 112
2017-11-12 12:09:03.462 BJUTDUHelperXamariniOS[366:223363] critical: 3 libsystem_c.dylib 0x0000000183e0ddac abort + 140
2017-11-12 12:09:03.462 BJUTDUHelperXamariniOS[366:223363] critical: 4 BJUTDUHelperXamariniOS 0x0000000103c560cc _ZL12log_callbackPKcS0_S0_iPv + 76
2017-11-12 12:09:03.462 BJUTDUHelperXamariniOS[366:223363] critical: 5 BJUTDUHelperXamariniOS 0x0000000103c29904 monoeg_g_logv + 100
2017-11-12 12:09:03.463 BJUTDUHelperXamariniOS[366:223363] critical: 6 BJUTDUHelperXamariniOS 0x0000000103c29afc monoeg_assertion_message + 44
2017-11-12 12:09:03.463 BJUTDUHelperXamariniOS[366:223363] critical: 7 BJUTDUHelperXamariniOS 0x0000000103b71068 mono_metadata_decode_row_col + 0
2017-11-12 12:09:03.463 BJUTDUHelperXamariniOS[366:223363] critical: 8 BJUTDUHelperXamariniOS 0x0000000103aca504 mono_aot_get_class_from_name + 492
2017-11-12 12:09:03.463 BJUTDUHelperXamariniOS[366:223363] critical: 9 BJUTDUHelperXamariniOS 0x0000000103b31834 mono_class_from_name_checked_aux + 504
2017-11-12 12:09:03.463 BJUTDUHelperXamariniOS[366:223363] critical: 10 BJUTDUHelperXamariniOS 0x0000000103b3197c mono_class_from_name + 80
2017-11-12 12:09:03.463 BJUTDUHelperXamariniOS[366:223363] critical: 11 BJUTDUHelperXamariniOS 0x0000000103c5654c _ZL19get_class_from_nameP10_MonoImagePKcS2
+ 40
2017-11-12 12:09:03.464 BJUTDUHelperXa
mariniOS[366:223363] critical: 12 BJUTDUHelperXamariniOS 0x0000000103c56220 xamarin_initialize + 272
2017-11-12 12:09:03.464 BJUTDUHelperXamariniOS[366:223363] critical: 13 BJUTDUHelperXamariniOS 0x0000000103c631fc xamarin_main + 1856
2017-11-12 12:09:03.464 BJUTDUHelperXamariniOS[366:223363] critical: 14 BJUTDUHelperXamariniOS 0x000000010019c270 main + 96
2017-11-12 12:09:03.465 BJUTDUHelperXamariniOS[366:223363] critical: 15 libdyld.dylib 0x0000000183d7e8b8 + 4

2017-11-12 12:09:03.465 BJUTDUHelperXamariniOS[366:223363] critical:

Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries

used by your application.

The app has been terminated.
Failed to Stop app: An error occured on client IDB471022 while executing a reply for topic xvs/idb/4.7.10.22/stop-app
The app has been terminated.

Sign In or Register to comment.