I'm having an exc_bad_access crash when starting an AVCaptureSession:
if captureSession.isRunning == false {
captureSession.startRunning()
}
Notice: It was working in Swift 2.2. I'm having this crash only after migration to Swift 3. Any idea!
YES! zsteed's answer works
Add to your Info.plist:
<key>NSCameraUsageDescription</key>
<string>Allow us to scan documents and capture images.</string>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With