Making DataScannerViewController work in the Simulator

Before you post —Camera doesn't work on the Simulator— that's no longer true. I've made a solution that makes the Simulator believe there's an actual hardware device connected, allowing users to stream the macOS camera to the iOS Simulator (see for more info RocketSim's documentation: https://docs.rocketsim.app/features/hzQMSrSga7BGWvxdNVdwYs/simulator-camera-support/58tQ5jvevLNSnyUEA7VgAv)

Now, it works for VNDocumentCameraViewController, but when I try opening DataScannerViewController, I directly run into:

Failed to start scanning: The operation couldn’t be completed. (VisionKit.DataScannerViewController.ScanningUnavailable error 0.)

My question:

  • How does this view controller determine whether scanning is available?
  • Is there a certain capability the available AVCaptureDevice's need to support maybe?

Any direction would be helpful for me to make this work for developers, making them build apps faster!