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]'