I'm developing a barcode scanner app using AVFoundation. My app successfully captures barcode data but it crash when detect FaceObjectType. How can we exclude this type from being detected to prevent crashing?
I'm using this:
captureMetadataOutput.metadataObjectTypes = [captureMetadataOutput availableMetadataObjectTypes];
Its a bit late, but I think it will help someone who have the same issue. For Preventing crash, you need to handle the AVMetadataObject(https://developer.apple.com/documentation/avfoundation/avmetadataobject), So my suggestion for this is as below (swift 3.0)