To capture raw images, I am setting this
AVCapturePhotoSettings(rawPixelFormatType: kCVPixelFormatType_24RGB)
But I am getting an invalid argument exception like as
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* +[AVCapturePhotoSettings photoSettingsWithRawPixelFormatType:] Unrecognized raw pixel format type'
The documentation states
If rawPhotoPixelFormatType is non-zero, it must be present in the receiver's -availableRawPhotoPixelFormatTypes array.
How do I add to this array?
What am I missing here?