Help Wanted

I am trying to build an app that scans QR codes but I get this Error!
How do I fix this error?
2020-08-19 16:04:19.305578-0700 House[31661:5897435] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[AVCaptureMetadataOutput setMetadataObjectTypes:] Unsupported type found - use -availableMetadataObjectTypes'
  • First throw call stack:

(0x18bf29c68 0x18bc4179c 0x1cc74d37c 0x100100088 0x10010157c 0x18ff5e078 0x18ff62720 0x18ff62ae4 0x19066cee8 0x19066c6bc 0x19066d58c 0x1c899af98 0x19067e998 0x1908949e0 0x18fb3d724 0x19062f658 0x19062f9e0 0x19016aeec 0x1919acb30 0x1919d6e50 0x1919bb32c 0x1919d6b24 0x10049d7d0 0x1004a1078 0x1919fec70 0x1919fe918 0x1919fee3c 0x18bea7124 0x18bea7068 0x18bea66f8 0x18bea0d7c 0x18bea0630 0x197c7a818 0x19062da38 0x190633928 0x1c869d3e4 0x100103674 0x1001035ec 0x1001036b8 0x18bd2c38c) libc++abi.dylib: terminating with uncaught exception of type NSException
  • Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[AVCaptureMetadataOutput setMetadataObjectTypes:] Unsupported type found - use -availableMetadataObjectTypes'

terminating with uncaught exception of type NSException

Help Wanted
 
 
Q