VNDocumentCameraViewController - crash with fatal error (iOs16)

With iOS 16, I have a fatal error when I launch VNDocumentCameraViewController

let myScanViewController = VNDocumentCameraViewController()
myScanViewController.delegate = self
self.present(myScanViewController, animated: false)

On my project, this function worked file with older operating system (like iOS 14, iOS 15)

info.plist --> NSCameraUsageDescription is present with description

Before the camera view appear, I'v got a fatal error and I do not know where to check or add a breakpoint to know where it try to add a nil object

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:

[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'

I have no idea how to solve it.

this is the backtraces

in debugger panel : Do I need to search in AppDelegate.swift?


* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00000001c7ed4200 libsystem_kernel.dylib`__pthread_kill + 8
    frame #1: 0x00000001d83361ac libsystem_pthread.dylib`pthread_kill + 268
    frame #2: 0x0000000192909c8c libsystem_c.dylib`abort + 180
    frame #3: 0x00000001d8276b8c libc++abi.dylib`abort_message + 132
    frame #4: 0x00000001d8266a80 libc++abi.dylib`demangling_terminate_handler() + 336
    frame #5: 0x0000000184611d3c libobjc.A.dylib`_objc_terminate() + 144
    frame #6: 0x00000001d8275f28 libc++abi.dylib`std::__terminate(void (*)()) + 20
    frame #7: 0x00000001d8278ecc libc++abi.dylib`__cxa_rethrow + 148
    frame #8: 0x000000018460d6b4 libobjc.A.dylib`objc_exception_rethrow + 44
    frame #9: 0x000000018b34cf98 CoreFoundation`CFRunLoopRunSpecific + 808
    frame #10: 0x00000001c464e368 GraphicsServices`GSEventRunModal + 164
    frame #11: 0x000000018d82b3d0 UIKitCore`-[UIApplication _run] + 888
    frame #12: 0x000000018d82b034 UIKitCore`UIApplicationMain + 340
  * frame #13: 0x0000000100d99984 ***`main at AppDelegate.swift:27:7
    frame #14: 0x00000001a99b4960 dyld`start + 2528
code-block

After deconstruct all the projet....the package SumUp (install via pod) is causing the crash....the backtraces is really not explicit about this fatal error !!!!

VNDocumentCameraViewController - crash with fatal error (iOs16)
 
 
Q