"Unknown selected data source for iPhone port" after a phone call

I have a video chat application. On my iPhone 5s, when in video chat, after the GSM phone call comes in, Xcode always prints a log:

2013-12-17 14: 50: 00.826 xxxxx [2485: 780f] 14: 50: 00.826 ERROR:
[0xad85000] AVAudioSessionPortImpl.mm:50: ValidateRequiredFields: Unknown selected data source for iPhone port È∫¶ÂÖãÈ £ é (type: MicrophoneBuiltIn)

which happens only on the iPhone5 device, and my iPhone4s doesn’t have such a problem, someone knows what kind of magazine it is and how to fix it.

+4
source share
1 answer

, let session = AVAudioSession.sharedInstance() session.setActive(false, error: noil) .

0

All Articles