Our app invoke the method AudioOutputUnitStart in the foreground, and frequently return the error AVAudioSessionErrorCodeCannotStartRecording, also when appear the problem, the background no app running, the problem more often occured on the device iPad 8 wifi + iOS 14.6, what is the reason and how to debug it. Thanks!
OSStatus status = AudioOutputUnitStart(recordUnit);
if (status!=noErr) {
status = 561145187
}
Post
Replies
Boosts
Views
Activity
I have got an error like below:
The operation could not be completed.
(OSStatus error -50.)
when calling
[AVAudioSession setPreferredInputNumberOfChannels:count error:outError]
with count=1 after set AVAudioSession to active. But sometimes it works fine.
Can anybody tell me why?
When I run xcodebuild command on the macbookpro, I got these warning:
objc[49709]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f32cc188) and ?? (0x1164502b8). One of the two will be used. Which one is undefined.
objc[49709]: Class AMSupportURLSession is implemented in both ?? (0x1f32cc1d8) and ?? (0x116450308). One of the two will be used. Which one is undefined.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
Can anyone tell me what's wrong and how to fix it?