trying to compile an iOS app with OpenCV 4.3 with contrib in a react native app. The app works fine in xcode, but as soon as I try compiling to bit code, the app fails. I've gone through several similar questions, but have not had any results and I'm hoping someone more experienced than I might have some suggestions.
The .ipa file does generate and I can test it on an iPad or iPhone, but as soon as the app opens, it crashes. Here is the crash log;
{"app_name":"helloOpenCV","timestamp":"2020-08-19 12:28:12.00 -0700","app_version":"1.0.0","slice_uuid":"ac62f4b8-acaa-3280-b516-c2bf59457f88","adam_id":1524526914,"build_version":"0","bundleID":"org.reactjs.native.example.ostrichtech","share_with_app_devs":0,"is_first_party":0,"bug_type":"109","os_version":"iPhone OS 13.6.1 (17G80)","incident_id":"022E1542-E13B-4D9C-8F11-EC181CAA230A","name":"helloOpenCV"}Incident Identifier: 022E1542-E13B-4D9C-8F11-EC181CAA230ACrashReporter Key: 1e73e0b5ca9fcb32b790521b18e0bd9d899b4d7fHardware Model: xxxProcess: helloOpenCV [1527]Path: /private/var/containers/Bundle/Application/540EE926-FB7E-47BD-B44F-6AD23FE645D8/helloOpenCV.app/helloOpenCVIdentifier: org.reactjs.native.example.ostrichtechVersion: 0 (1.0.0)AppStoreTools: 11E707Code Type: ARM-64 (Native)Role: ForegroundParent Process: launchd [1]Coalition: org.reactjs.native.example.ostrichtech [741]Date/Time: 2020-08-19 12:28:12.4291 -0700Launch Time: 2020-08-19 12:28:12.0061 -0700OS Version: iPhone OS 13.6.1 (17G80)Release Type: UserBaseband Version: n/aReport Version: 104Exception Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYTriggered by Thread: 0Last Exception Backtrace:0 CoreFoundation 0x1aaa37654 __exceptionPreprocess + 2241 libobjc.A.dylib 0x1aa759bcc objc_exception_throw + 552 helloOpenCV 0x102baa574 RCTFatal + 386420 (RCTAssert.m:146)3 helloOpenCV 0x102bbee14 __28-[RCTCxxBridge handleError:]_block_invoke + 470548 (RCTCxxBridge.mm:990)4 libdispatch.dylib 0x1aa6fc9a8 _dispatch_call_block_and_release + 235 libdispatch.dylib 0x1aa6fd524 _dispatch_client_callout + 156 libdispatch.dylib 0x1aa6af5b4 _dispatch_main_queue_callback_4CF$VARIANT$mp + 9037 CoreFoundation 0x1aa9b56bc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 118 CoreFoundation 0x1aa9b0590 __CFRunLoopRun + 17239 CoreFoundation 0x1aa9afba8 CFRunLoopRunSpecific + 42310 GraphicsServices 0x1b4b1f344 GSEventRunModal + 15911 UIKitCore 0x1aeaeb3e4 UIApplicationMain + 193112 helloOpenCV 0x102b53280 main + 29312 (main.m:14)13 libdyld.dylib 0x1aa8378f0 start + 3Thread 0 name: Dispatch queue: com.apple.main-threadThread 0 Crashed:0 libsystem_kernel.dylib 0x00000001aa82cd88 __pthread_kill + 81 libsystem_pthread.dylib 0x00000001aa7451e8 pthread_kill$VARIANT$mp + 1362 libsystem_c.dylib 0x00000001aa698934 abort + 1003 libc++abi.dylib 0x00000001aa800cc0 __cxxabiv1::__aligned_malloc_with_fallback+ 76992 (unsigned long) + 04 libc++abi.dylib 0x00000001aa7f2e10 demangling_unexpected_handler+ 19984 () + 05 libobjc.A.dylib 0x00000001aa759e80 _objc_terminate+ 24192 () + 1246 libc++abi.dylib 0x00000001aa80014c std::__terminate(void (*)+ 74060 ()) + 167 libc++abi.dylib 0x00000001aa8000e4 std::terminate+ 73956 () + 448 libdispatch.dylib 0x00000001aa6fd538 _dispatch_client_callout + 369 libdispatch.dylib 0x00000001aa6af5b4 _dispatch_main_queue_callback_4CF$VARIANT$mp + 90410 CoreFoundation 0x00000001aa9b56bc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 1211 CoreFoundation 0x00000001aa9b0590 __CFRunLoopRun + 172412 CoreFoundation 0x00000001aa9afba8 CFRunLoopRunSpecific + 42413 GraphicsServices 0x00000001b4b1f344 GSEventRunModal + 16014 UIKitCore 0x00000001aeaeb3e4 UIApplicationMain + 193215 helloOpenCV 0x0000000102b53280 main + 29312 (main.m:14)16 libdyld.dylib 0x00000001aa8378f0 start + 4Thread 1:0 libsystem_pthread.dylib 0x00000001aa751738 start_wqthread + 0Thread 2:0 libsystem_pthread.dylib 0x00000001aa751738 start_wqthread + 0Thread 3:0 libsystem_pthread.dylib 0x00000001aa751738 start_wqthread + 0Thread 4:0 libsystem_pthread.dylib 0x00000001aa751738 start_wqthread + 0Thread 5 name: com.apple.uikit.eventfetch-threadThread 5:0 libsystem_kernel.dylib 0x00000001aa80b198 mach_msg_trap + 81 libsystem_kernel.dylib 0x00000001aa80a60c mach_msg + 722 CoreFoundation 0x00000001aa9b5328 __CFRunLoopServiceMachPort + 1483 CoreFoundation 0x00000001aa9b035c __CFRunLoopRun + 11604 CoreFoundation 0x00000001aa9afba8 CFRunLoopRunSpecific + 4245 Foundation 0x00000001aad0101c -[NSRunLoop+ 32796 (NSRunLoop) runMode:beforeDate:] + 2286 Foundation 0x00000001aad00efc -[NSRunLoop+ 32508 (NSRunLoop) runUntilDate:] + 887 UIKitCore 0x00000001aeb8e57c -[UIEventFetcher threadMain] + 1528 Foundation 0x00000001aae2fe20 __NSThread__start__ + 8489 libsystem_pthread.dylib 0x00000001aa74dd98 _pthread_start + 15610 libsystem_pthread.dylib 0x00000001aa75174c thread_start + 8Thread 6:0 libsystem_pthread.dylib 0x00000001aa751738 start_wqthread + 0Thread 7:0 libsystem_pthread.dylib 0x00000001aa751738 start_wqthread + 0Thread 8:0 libsystem_pthread.dylib 0x00000001aa751738 start_wqthread + 0Thread 9 name: com.facebook.react.JavaScriptThread 9:0 libsystem_kernel.dylib 0x00000001aa80b198 mach_msg_trap + 81 libsystem_kernel.dylib 0x00000001aa80a60c mach_msg + 722 CoreFoundation 0x00000001aa9b5328 __CFRunLoopServiceMachPort + 1483 CoreFoundation 0x00000001aa9b035c __CFRunLoopRun + 11604 CoreFoundation 0x00000001aa9afba8 CFRunLoopRunSpecific + 4245 helloOpenCV 0x0000000102bbab68 +[RCTCxxBridge runRunLoop] + 453480 (RCTCxxBridge.mm:0)6 Foundation 0x00000001aae2fe20 __NSThread__start__ + 8487 libsystem_pthread.dylib 0x00000001aa74dd98 _pthread_start + 1568 libsystem_pthread.dylib 0x00000001aa75174c thread_start + 8Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000 x4: 0x00000001aa803f29 x5: 0x000000016d2b2630 x6: 0x000000000000006e x7: 0xffffffffffffffec x8: 0x0000000103195840 x9: 0x4a916e5a4ccfbc7a x10: 0x00000001aa745160 x11: 0x000000000000000b x12: 0x00000001e4b57080 x13: 0x0000000000000001 x14: 0x0000000000000010 x15: 0x0000000000000007 x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006 x20: 0x0000000000000407 x21: 0x000000016d2b2630 x22: 0x0000000103195920 x23: 0x0000000000000000 x24: 0x0000000000000114 x25: 0x00000002811f1cc0 x26: 0x0000000103195920 x27: 0x00000000000020ff x28: 0x0000000002ffffff fp: 0x000000016d2b2590 lr: 0x00000001aa7451e8 sp: 0x000000016d2b2570 pc: 0x00000001aa82cd88 cpsr: 0x40000000 esr: 0x56000080 Address size fault
This issue on git hub best describes what I'm dealing with, but I have had no luck with any of the given answers and I am not using Unity; https://github.com/f111fei/react-native-unity-view/issues/79
Thanks in advance to anyone who has a suggestion.