'iOS AVCapturePhotoOutput crashed due to shutter sounds
My app had a crash sometimes when taking a photo:
[output capturePhotoWithSettings:avsettings delegate:self];
and the crash info:
Fatal Exception: NSInvalidArgumentException
*** -[AVCapturePhotoOutput capturePhotoWithSettings:delegate:] You are not authorized to use custom shutter sounds
crash device: iPhone7 plus
operation system: iOS 12.1.1,no jailbroken
So what is the cause of this, and how can I fix it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|