iOS AVCapturePhotoOutput crashed due to shutter sounds

232 Views Asked by At

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?

0

There are 0 best solutions below