Updated to Xcode 10.1 on Mojave and now my app always asks to use the microphone
问题 I am running a AVAudioSession which I suspect is activating the microphone request, but I only use it for sounds and music. When running Xcode 10.1 Simulator on macOS Mojave , why does it activate a request to access the microphone? I haven't written a single line to even ask access to it. My app doesn't need access to it nor do I want it to. Here's the code to play the music: AVAudioSession *title = [AVAudioSession sharedInstance]; [title setCategory:AVAudioSessionCategoryAmbient error:nil];