Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
artoymsd opened this issue Feb 21, 2019 · 3 comments

Comments

@artoymsd
Copy link

artoymsd commented Feb 21, 2019

  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 artoymsd changed the title Example App crash on iOS 10.0 - Thread 1: EXC_BAD_ACCESS (code=1, address=0x50) Example App crashes on iOS 10.0 - Thread 1: EXC_BAD_ACCESS (code=1, address=0x50) Feb 21, 2019
@yannickl
Copy link
Owner

I have no device with iOS10. Could someone help?

@artoymsd
Copy link
Author

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

@yannickl
Copy link
Owner

yannickl commented Mar 2, 2019

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

try QRCodeReader.supportsMetadataObjectTypes()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants