Runs with #2 on iOS 13.1, but crashes on toggling on audio input via "headset microphone." Xcode shows:
PulseCQTNC[1211:318993] invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
Error: Failed to fill complex buffer in float converter ('insz')
EDIT: Added what may be the actual error.