Harrath hichem Harrath hichem - 1 year ago 87
iOS Question

AVCaptureSession startRunning exc_bad_access iOS 10 Swift 3

I'm having an exc_bad_access crash when starting an AVCaptureSession:

if captureSession.isRunning == false {

Notice: It was working in Swift 2.2. I'm having this crash only after migration to Swift 3.
Any idea!

Answer Source

YES! zsteed's answer works

Add to your Info.plist:

<string>Allow us to scan documents and capture images.</string>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download