After upgrading to iOS 17.1, I can't scan some
QR codes. The same codes can be scanned correctly before. In details
- iPadOS 17.0 and earlier: Works well
- iPadOS 17.1: Something goes wrong
- Sample project code:
func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
captureSession.stopRunning()
if let metadataObject = metadataObjects.first {
guard let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { return }
guard let stringValue = readableObject.stringValue else {
foundButInvalid()
return
}
found(code: stringValue)
}
}
-
Sample QR code