如何调试 nativescript 抛出 "NativeScript caught signal 11." 错误?

How to debug nativescript throwing "NativeScript caught signal 11." error?

我已经为 nativescript ios 创建了一个插件,直到最近我更新了 pod 版本之前它都运行良好。 现在,当我 运行 插件时,我得到这个错误: NativeScript 捕获信号 11.

我已经仔细检查了输入,没有拼写错误或参数不匹配。

NativeScript caught signal 11.
Native Stack:
1   0x104c6cf70 sig_handler(int)
2   0x1f46f99dc <redacted>
3   0x104c5e768 NativeScript::ObjCMethodWrapper::postInvocation(NativeScript::FFICall*, JSC::ExecState*, NativeScript::FFICall::Invocation&)
4   0x104bf500c NativeScript::FunctionWrapper::call(JSC::ExecState*)
5   0x1056d7a58 llint_entry
6   0x1056d6eb4 llint_entry
7   0x1056d6eb4 llint_entry
8   0x1056d6eb4 llint_entry
9   0x1056d7318 llint_entry
10  0x1056d6eb4 llint_entry
11  0x1056d7318 llint_entry
12  0x1056d6e4c llint_entry
13  0x1056d6e4c llint_entry
14  0x1056d6eb4 llint_entry
15  0x1056d6eb4 llint_entry
16  0x1056d6e4c llint_entry
17  0x1056d6eb4 llint_entry
18  0x1056cf91c vmEntryToJavaScript
19  0x1054ce84c JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
20  0x104c61238 NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::callFunction(JSC::JSValue const&, JSC::ArgList const&, void*)
21  0x104c60d58 NativeScript::ObjCMethodCallback::ffiClosureCallback(void*, void**, void*)
22  0x104c6142c NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
23  0x1056d9794 ffi_closure_SYSV_inner
24  0x1056dc1b4 .Ldo_closure
25  0x2213f1040 <redacted>
26  0x220e9a1c8 <redacted>
27  0x220e9a4e8 <redacted>
28  0x220e99554 <redacted>
29  0x221428304 <redacted>
30  0x22142952c <redacted>
31  0x22140959c <redacted>
JS Stack:
1   initWithConfiguration@[native code]
2   start@file:///app/tns_modules/nativescript-nsjumioplugin/nsjumioplugin.js:22:97
3   onSelectSingleTap@file:///app/app/pages/user/info/identification/identification.component.js:109:33
4   @:34:44
5   callWithDebugContext@file:///app/tns_modules/@angular/core/bundles/core.umd.js:24198:34
6   dispatchEvent@file:///app/tns_modules/@angular/core/bundles/core.umd.js:20577:40
7   @file:///app/tns_modules/nativescript-angular/renderer.js:238:31
8   onInvoke@file:///app/tns_modules/@angular/core/bundles/core.umd.js:17344:43
9   run@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:138:49
10  zonedCallback@file:///app/tns_modules/nativescript-angular/renderer.js:237:27
11  notify@file:///app/tns_modules/tns-core-modules/data/observable/observable.js:110:31
12  _emit@file:///app/tns_modules/tns-core-modules/data/observable/observable.js:127:24
13  tap@file:///app/tns_modules/tns-core-modules/ui/button/button.js:216:24
14  UIApplicationMai<\M-b\M^@\M-&>

这可能对您有帮助: 我在使用 RadSideDrawer 时得到了 NativeScript caught signal 11。 我尝试使用 drawerContentSize="drawerSize" 而不是正确的 [drawerContentSize]="drawerSize" (因为 drawerSize 在我的 ts 文件中是 getter)

所以一般来说,如果您忘记方括号(有时),我可能会认为它可能会发生

信号 11 错误似乎是一般错误,可能由其他人在评论中提到的许多事情引起。

就我而言,我的 IP 被 OneSignal 的服务器阻止了。

就我而言,我已将此命令用于 运行 应用程序

tns run ios --bundle --no-hmr --clean --log trace

或者 IP 在 OneSignal's servers

上被阻止