Fatal Exception: NSInvalidArgumentException
*** -[AVCapturePhotoOutput capturePhotoWithSettings:delegate:] flashMode must be set to a value present in the supportedFlashModes array
This crash only happens on iPads, and we set flashMode to a value that isn't supported by some devices.
What?
Set flashMode to .off if the current mode isn't within cameraOutput.supportedFlashModes.
Why?
Ref. this Crashlytics error that says:
This crash only happens on iPads, and we set
flashMode
to a value that isn't supported by some devices.What?
flashMode
to.off
if the current mode isn't withincameraOutput.supportedFlashModes
.