AVAudioSessionManager availableInputs “Unknown selected data source for port iPhone Microphone”
问题 I've noticed this error in my console log for a while. Though it does not affect the execution of my application, I find it really annoying. Thus, I started to trace where this error came from. It turns out when I call availableInputs NSArray *inputs = [[AVAudioSession sharedInstance] availableInputs]; It will give me the log message: ERROR: [0x3d61318c] AVAudioSessionPortImpl.mm:50: ValidateRequiredFields: Unknown selected data source for Port iPhone Microphone (type: MicrophoneBuiltIn) I