Я немного разочарован этим.
это нормально, когда я работаю в режиме отладки даже с симулятором или устройством. затем я пытаюсь управлять этим режимом разблокировки, но он мгновенно закрывается без каких-либо ошибок на стороне JS. это может быть на родном коде, но я не понимаю, как с этим справиться.
я получил журналы от xcode> window> устройство и симулятор> телефон> просмотр журналов> журналы ошибок
вот журналы :
Date/Time: 2020-04-28 18:41:59.4120 +0700
Launch Time: 2020-04-28 18:41:58.1507 +0700
OS Version: iPhone OS 13.4 (17E255)
Release Type: User
Baseband Version: 4.02.02
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x00000001fe4d01c0
VM Region Info: 0x1fe4d01c0 is in 0x1fe4ceff0-0x1fe4d7170; bytes after start: 4560 bytes before end: 28591
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
__DATA_DIRTY 00000001fe4cedb8-00000001fe4ceff0 [ 568] rw-/rw- SM=COW ...em_info.dylib
---> __DATA_DIRTY 00000001fe4ceff0-00000001fe4d7170 [ 32K] rw-/rw- SM=COW ...oreFoundation
__DATA_DIRTY 00000001fe4d7170-00000001fe4d72d0 [ 352] rw-/rw- SM=COW ...Configuration
Termination Signal: Bus error: 10
Termination Reason: Namespace SIGNAL, Code 0xa
Terminating Process: exc handler [964]
Triggered by Thread: 14
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x00000001b13d1198 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b13d060c mach_msg + 72
2 CoreFoundation 0x00000001b157b3b4 __CFRunLoopServiceMachPort + 148
3 CoreFoundation 0x00000001b15763e8 __CFRunLoopRun + 1160
4 CoreFoundation 0x00000001b1575c34 CFRunLoopRunSpecific + 424
5 GraphicsServices 0x00000001bb6bf38c GSEventRunModal + 160
6 UIKitCore 0x00000001b56a822c UIApplicationMain + 1932
7 TestApp 0x000000010052c660 main + 18016 (__hidden#96_:14)
8 libdyld.dylib 0x00000001b13fd800 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 4 name: Dispatch queue: com.apple.network.connections
Thread 4:
0 libnetwork.dylib 0x00000001b3b898d0 -[NWConcrete_nw_address_endpoint type] + 0
1 libnetwork.dylib 0x00000001b3b95be0 nw_endpoint_get_address + 84
2 libnetwork.dylib 0x00000001b39bce28 nw_path_create_necp_parameters + 4144
3 libnetwork.dylib 0x00000001b3bd140c nw_path_evaluator_evaluate + 324
4 libnetwork.dylib 0x00000001b3bd0fe0 nw_path_create_evaluator_for_endpoint + 780
5 libnetwork.dylib 0x00000001b39e2d3c nw_association_activate + 140
6 libnetwork.dylib 0x00000001b39e2248 nw_association_register + 240
7 libnetwork.dylib 0x00000001b38ff724 nw_endpoint_handler_initialize_association + 236
8 libnetwork.dylib 0x00000001b3908c48 nw_endpoint_handler_start + 1144
9 libnetwork.dylib 0x00000001b3af4768 nw_endpoint_resolver_start_next_child + 3656
10 libdispatch.dylib 0x00000001b12c3524 _dispatch_client_callout + 16
11 libdispatch.dylib 0x00000001b126be98 _dispatch_continuation_pop$VARIANT$mp + 412
12 libdispatch.dylib 0x00000001b127c430 _dispatch_source_invoke$VARIANT$mp + 1276
13 libdispatch.dylib 0x00000001b1271370 _dispatch_workloop_invoke$VARIANT$mp + 1612
14 libdispatch.dylib 0x00000001b127978c _dispatch_workloop_worker_thread + 588
15 libsystem_pthread.dylib 0x00000001b1314b74 _pthread_wqthread + 272
16 libsystem_pthread.dylib 0x00000001b1317740 start_wqthread + 8
Thread 5:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 8 name: com.apple.uikit.eventfetch-thread
Thread 8:
0 libsystem_kernel.dylib 0x00000001b13d1198 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b13d060c mach_msg + 72
2 CoreFoundation 0x00000001b157b3b4 __CFRunLoopServiceMachPort + 148
3 CoreFoundation 0x00000001b15763e8 __CFRunLoopRun + 1160
4 CoreFoundation 0x00000001b1575c34 CFRunLoopRunSpecific + 424
5 Foundation 0x00000001b18b8bcc -[NSRunLoop+ 31692 (NSRunLoop) runMode:beforeDate:] + 228
6 Foundation 0x00000001b18b8aac -[NSRunLoop+ 31404 (NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0x00000001b574a160 -[UIEventFetcher threadMain] + 152
8 Foundation 0x00000001b19e79d0 __NSThread__start__ + 848
9 libsystem_pthread.dylib 0x00000001b1313d98 _pthread_start + 156
10 libsystem_pthread.dylib 0x00000001b131774c thread_start + 8
Thread 9:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 10:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 11:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 12:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 13 name: com.twitter.crashlytics.ios.MachExceptionServer
Thread 13:
0 libsystem_kernel.dylib 0x00000001b13d1198 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b13d060c mach_msg + 72
2 TestApp 0x0000000100531034 _hidden#370_ + 884
3 libsystem_pthread.dylib 0x00000001b1313d98 _pthread_start + 156
4 libsystem_pthread.dylib 0x00000001b131774c thread_start + 8
Thread 14 name: com.facebook.react.JavaScript
Thread 14 Crashed:
0 ??? 0x00000001fe4d01c0 0 + 8561426880
1 React 0x0000000100c1ce38 _hidden#2225_ + 167480 (__hidden#2367_:55)
2 React 0x0000000100c12bb0 facebook::react::JSIExecutor::callNativeModules(facebook::jsi::Value const&, bool) + 125872 (__hidden#1732_:320)
3 React 0x0000000100c13cdc _hidden#1598_ + 130268 (__hidden#119_:1707)
4 React 0x0000000100c0b8c4 std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) const + 96452 (__hidden#119_:2419)
5 React 0x0000000100c0b604 _hidden#1146_ + 95748 (__hidden#1180_:953)
6 JavaScriptCore 0x00000001c07180a8 JSC::JSCallbackObject<JSC::JSNonFinalObject>::call+ 2863272 (JSC::JSGlobalObject*, JSC::CallFrame*) + 428
7 JavaScriptCore 0x00000001c0d1a708 JSC::LLInt::setUpCall+ 9164552 (JSC::CallFrame*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*) + 684
8 JavaScriptCore 0x00000001c06c3f4c llint_entry + 124780
9 JavaScriptCore 0x00000001c06c3eb8 llint_entry + 124632
10 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
11 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
12 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
13 JavaScriptCore 0x00000001c06c3eb8 llint_entry + 124632
14 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
15 JavaScriptCore 0x00000001c06c3eb8 llint_entry + 124632
16 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
17 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
18 JavaScriptCore 0x00000001c06c3eb8 llint_entry + 124632
19 JavaScriptCore 0x00000001c06c3eb8 llint_entry + 124632
20 JavaScriptCore 0x00000001c06c4e64 llint_entry + 128644
21 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
22 JavaScriptCore 0x00000001c06c3eb8 llint_entry + 124632
23 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
24 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
25 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
26 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
27 JavaScriptCore 0x00000001c06c3eb8 llint_entry + 124632
28 JavaScriptCore 0x00000001c06c3eb8 llint_entry + 124632
29 JavaScriptCore 0x00000001c06c3eb8 llint_entry + 124632
30 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
31 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
32 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
33 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
34 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
35 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
36 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
37 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
38 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
39 JavaScriptCore 0x00000001c06c5394 llint_entry + 129972
40 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
41 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
42 JavaScriptCore 0x00000001c06c3f60 llint_entry + 124800
43 JavaScriptCore 0x00000001c06a5598 vmEntryToJavaScript + 248
44 JavaScriptCore 0x00000001c0c53ff8 JSC::Interpreter::executeCall+ 8351736 (JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 444
45 JavaScriptCore 0x00000001c0ed2848 JSC::boundThisNoArgsFunctionCall+ 10967112 (JSC::JSGlobalObject*, JSC::CallFrame*) + 712
46 JavaScriptCore 0x00000001c06a5714 vmEntryToNative + 260
47 JavaScriptCore 0x00000001c0c5404c JSC::Interpreter::executeCall+ 8351820 (JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 528
48 JavaScriptCore 0x00000001c0e39a38 JSC::profiledCall+ 10340920 (JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 168
49 JavaScriptCore 0x00000001c0726430 JSObjectCallAsFunction + 504
50 React 0x0000000100c096bc facebook::jsc::JSCRuntime::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) + 87740 (__hidden#1180_:0)
51 React 0x0000000100c148e0 _hidden#1643_ + 133344 (__hidden#1188_:233)
52 React 0x0000000100c14740 _hidden#1640_ + 132928 (__hidden#119_:1707)
53 React 0x0000000100c07344 _hidden#1065_ + 78660 (__hidden#121_:348)
54 React 0x0000000100c127c4 facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, folly::dynamic const&) + 124868 (__hidden#1732_:221)
55 React 0x0000000100c1e2fc _hidden#2301_ + 172796 (__hidden#119_:1707)
56 React 0x0000000100c4bcb4 facebook::react::tryAndReturnError(std::__1::function<void ()> const&) + 359604 (__hidden#4971_:0)
57 React 0x0000000100c6c480 facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) + 492672 (__hidden#6872_:0)
58 CoreFoundation 0x00000001b157b998 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
59 CoreFoundation 0x00000001b157b124 __CFRunLoopDoBlocks + 264
60 CoreFoundation 0x00000001b1576264 __CFRunLoopRun + 772
61 CoreFoundation 0x00000001b1575c34 CFRunLoopRunSpecific + 424
62 TestApp 0x000000010066bee8 _hidden#14225_ + 1326824 (__hidden#14540_:0)
63 Foundation 0x00000001b19e79d0 __NSThread__start__ + 848
64 libsystem_pthread.dylib 0x00000001b1313d98 _pthread_start + 156
65 libsystem_pthread.dylib 0x00000001b131774c thread_start + 8
Thread 15 name: JavaScriptCore bmalloc scavenger
Thread 15:
0 libsystem_kernel.dylib 0x00000001b13f2b58 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001b130cce4 _pthread_cond_wait$VARIANT$mp + 680
2 libc++.1.dylib 0x00000001b1444844 std::__1::condition_variable::__do_timed_wait+ 51268 (std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 96
3 JavaScriptCore 0x00000001c04ebc94 std::__1::cv_status std::__1::condition_variable_any::wait_until<std::__1::unique_lock<bmalloc::Mutex>, std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >+ 584852 (std::__1::unique_lock<bmalloc::Mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 200
4 JavaScriptCore 0x00000001c04eab34 bmalloc::Scavenger::threadRunLoop+ 580404 () + 272
5 JavaScriptCore 0x00000001c04ea7d4 bmalloc::Scavenger::Scavenger+ 579540 (std::__1::lock_guard<bmalloc::Mutex> const&) + 0
6 JavaScriptCore 0x00000001c04eba18 std::__1::__thread_specific_ptr<std::__1::__thread_struct>::set_pointer+ 584216 (std::__1::__thread_struct*) + 0
7 libsystem_pthread.dylib 0x00000001b1313d98 _pthread_start + 156
8 libsystem_pthread.dylib 0x00000001b131774c thread_start + 8
Thread 16:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 17:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 18:
0 libsystem_pthread.dylib 0x00000001b1317738 start_wqthread + 0
Thread 19 name: Heap Helper Thread
Thread 19:
0 libsystem_kernel.dylib 0x00000001b13f2b58 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001b130cce4 _pthread_cond_wait$VARIANT$mp + 680
2 JavaScriptCore 0x00000001c04ab974 WTF::ThreadCondition::timedWait+ 321908 (WTF::Mutex&, WTF::WallTime) + 152
3 JavaScriptCore 0x00000001c0490940 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void + 211264 ()> const&, WTF::TimeWithDynamicClockType const&) + 1908
4 JavaScriptCore 0x00000001c0468748 bool WTF::Condition::waitUntil<WTF::Lock>+ 46920 (WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 184
5 JavaScriptCore 0x00000001c0468b00 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call+ 47872 () + 216
6 JavaScriptCore 0x00000001c04a8fbc WTF::Thread::entryPoint+ 311228 (WTF::Thread::NewThreadContext*) + 180
7 JavaScriptCore 0x00000001c04ab0f8 WTF::wtfThreadEntryPoint+ 319736 (void*) + 12
8 libsystem_pthread.dylib 0x00000001b1313d98 _pthread_start + 156
9 libsystem_pthread.dylib 0x00000001b131774c thread_start + 8
Thread 14 crashed with ARM Thread State (64-bit):
x0: 0x00000001f25f3ad8 x1: 0x0000000283368f00 x2: 0x0000000000000000 x3: 0x00000001fe4d01c0
x4: 0x0000000283368f80 x5: 0x000000016ffef650 x6: 0x0000000282643fc0 x7: 0x0000000000000e90
x8: 0x00000001fe4d0710 x9: 0x0000000000000001 x10: 0x0000000000000114 x11: 0x0000000000000000
x12: 0x000000000000003c x13: 0x0000000000000001 x14: 0x0000000000000061 x15: 0x000000000000000b
x16: 0x00000000000007fb x17: 0x00000001b14f7744 x18: 0x0000000000000000 x19: 0x000000016ffefa38
x20: 0x000000016ffefa40 x21: 0x000000016ffefa50 x22: 0x0000000280d7df10 x23: 0x0000000000000000
x24: 0x00000001f25f3ad8 x25: 0x0000000100f0bbb0 x26: 0x0000000000000001 x27: 0x000000016ffef9e0
x28: 0x0000000000000002 fp: 0x000000016ffefae0 lr: 0x0000000100c79b2c
sp: 0x000000016ffef9a0 pc: 0x00000001fe4d01c0 cpsr: 0x20000000
esr: 0x8200000f (Instruction Abort) Permission fault
К сожалению, я не могу прочитать там ни одной ошибки, потому что я просто код на стороне JS, а не на нативном. кто-то может помочь мне с этим