QRCodeReader.swift icon indicating copy to clipboard operation
QRCodeReader.swift copied to clipboard

Example App crashes on iOS 10.0 - Thread 1: EXC_BAD_ACCESS (code=1, address=0x50)

Open artoymsd opened this issue 6 years ago • 3 comments

  public init(metadataObjectTypes types: [AVMetadataObject.ObjectType], captureDevicePosition: AVCaptureDevice.Position) {
    metadataObjectTypes = types
    previewLayer        = AVCaptureVideoPreviewLayer(session: session) - CRASHED LINE

    super.init()

    sessionQueue.async {
      self.configureDefaultComponents(withCaptureDevicePosition: captureDevicePosition)
    }
  }

artoymsd avatar Feb 21 '19 12:02 artoymsd

I have no device with iOS10. Could someone help?

yannickl avatar Feb 24 '19 11:02 yannickl

@yannickl I downloaded iOS 10.0 in Xcode and run it in simulator

artoymsd avatar Feb 25 '19 10:02 artoymsd

@artoymsd but you can't use the camera with the simulator? Have you checked the permissions and the camera availability before?

try QRCodeReader.supportsMetadataObjectTypes()

yannickl avatar Mar 02 '19 21:03 yannickl