Fix: “SimulatorTrampoline.xpc” Microphone Access Prompt in Xcode Simulator

Fix: "SimulatorTrampoline.xpc" Microphone Access Prompt in Xcode Simulator

Written by

in

Quick answer: The “SimulatorTrampoline.xpc would like to access the microphone” prompt is a legitimate macOS system dialog introduced in Xcode 10.2 to fix repeated microphone permission requests in the Simulator. It comes from Xcode itself, not your project. Click OK to allow audio services in the Simulator.

Why this happens

The prompt appears because of a change Apple made in Xcode 10.2 (radar 45715977). Before this fix, the iOS Simulator would ask for microphone permission every time you launched an app that used audio APIs, which quickly became a nuisance during development.

To solve this, Apple introduced a system component called SimulatorTrampoline.xpc. This helper process runs as part of the Simulator infrastructure and requests microphone access once on behalf of all simulated apps. The dialog you see is macOS asking for your consent so that the Simulator can provide audio input services to your app without prompting repeatedly.

You won’t find any reference to SimulatorTrampoline.xpc in your source code, CocoaPods, or Swift Package Manager dependencies because it lives inside the Xcode application bundle and the Simulator runtime. It is not something your project links against or controls directly.

How to fix it

1. Allow the permission (recommended)

Click OK in the dialog. This grants the Simulator the microphone access it needs so that audio recording, AVAudioEngine, AVAudioSession, and related APIs work correctly while you’re testing in the Simulator. After you allow it once, macOS remembers the choice and you won’t see the prompt again for that Xcode/Simulator version.

2. If you accidentally clicked Don’t Allow

If you denied the request, audio input will fail silently or throw errors in the Simulator. To fix it:

  1. Open System Settings (or System Preferences on older macOS).
  2. Go to Privacy & Security → Microphone.
  3. Find SimulatorTrampoline.xpc (or Xcode / Simulator in some macOS versions) in the list.
  4. Enable the checkbox next to it.
  5. Restart the Simulator if it was running.

3. Verify audio works in the Simulator

After granting permission, add a quick test to confirm audio input is functional:

import AVFoundation

func testSimulatorMicrophone() {
    let session = AVAudioSession.sharedInstance()
    do {
        try session.setCategory(.playAndRecord, mode: .default)
        try session.setActive(true)
        let permission = session.recordPermission
        print("Microphone permission: \(permission.rawValue)")
        // permission == .granted means it's working
    } catch {
        print("Audio session error: \(error)")
    }
}

Call this from your app’s launch path (e.g., in application(_:didFinishLaunchingWithOptions:) or a SwiftUI onAppear) and check the console. You should see Microphone permission: 1735552628 (which is granted).

How to prevent it

  • Keep Xcode updated — Apple occasionally adjusts the Simulator’s privacy helpers; newer versions may consolidate or rename the prompt.
  • Don’t block the prompt — Denying it breaks audio input in the Simulator and forces you to manually fix it in System Settings later.
  • Use a real device for final audio testing — The Simulator’s audio pipeline differs from hardware (no hardware echo cancellation, different sample-rate behavior). Always validate critical audio features on a physical iPhone or iPad.
  • Reset Simulator sparingly — Device → Erase All Content and Settings… in the Simulator menu resets the privacy database, which will cause the prompt to appear again on the next run.

FAQ

Is SimulatorTrampoline.xpc malware or a sign my project is compromised?

No. It is a legitimate Apple-signed system component shipped inside Xcode. The prompt is macOS’s standard privacy gate for microphone access, triggered by the Simulator’s audio subsystem.

Why did this start appearing after I upgraded to Xcode 10.2 / Swift 5?

Xcode 10.2 introduced the fix for radar 45715977. Earlier versions prompted for microphone access on every app launch; the new design centralizes the request in SimulatorTrampoline.xpc so you only see it once per Simulator runtime.

Can I suppress the prompt programmatically from my app?

No. The prompt is generated by the Simulator infrastructure before your app’s code runs. The only way to avoid it is to pre-grant microphone access to SimulatorTrampoline.xpc via an MDM profile or by clicking OK the first time it appears.

Sources & credits

Parts of this guide are adapted from content licensed under CC BY-SA 4.0; this article is shared under the same license.