iOS/iPadOS 17.1 has new issue with QR scanning

318 Views Asked by At

After upgrading to iOS 17.1, I can't scan some QR codes. The same codes can be scanned correctly with earlier versions of iOS. In details:

  • iOS 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) {

    guard let metadataObject = metadataObjects.first,
          let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { 
        return 
    }

    guard let stringValue = readableObject.stringValue else {
        foundButInvalid()
        return
    }
    found(code: stringValue)
}
  • Sample QR code

    Japanese text

  • All assets: here

P.S: It's easy to see the issue with the built-in Camera app: With QR code scanning option enabled, iOS Camera app can regconize the QR with iOS 17.0, but 17.1

iOS 16.4.1 iPadOS 17.1

0

There are 0 best solutions below