*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVAssetWriterInput initWithMediaType:outputSettings:sourceFormatHint:] 4 is not a valid channel count for Format ID 'aac '. Use kAudioFormatProperty_AvailableEncodeNumberChannels (<AudioToolbox/AudioFormat.h>) to enumerate available channel counts for a given format.'
I doubt it matters but I'm using the Swift 5 branch.
This happens both on
record()
and.photo()
call.Error:
I doubt it matters but I'm using the Swift 5 branch.