'Cannot use Voice Isolation with AVAudioRecorder or AudioUnit

I'm trying to record voice audio with either AVAudioRecorder or AUAudioUnit.

In both, after a recording has started, whenever calling AVCaptureDevice.showSystemUserInterface(.microphoneModes) and selecting voice isolation, I get the following error:

"Voice Isolation and Wide Spectrum are currently unavailable"

TLDR: What do I need to allow the user to change to voice isolation mode?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source