197

I recently upgraded to Swift 5, Xcode version 10.2 (10E125), and after fixing a few compile issues on an app in progress, see this new and never-seen-before request. I can find no evidence of it in my project via direct searching, and no search returns on the net. No return from the pods within the project either.

This concerns me and wondered if anyone has any info on it.

shim
  • 9,289
  • 12
  • 69
  • 108
drew..
  • 3,234
  • 3
  • 16
  • 19

1 Answers1

268

This is part of Apple's fix for radar 45715977, where Simulator devices would prompt repeatedly to access the microphone (as often as every time your app was run). You can find a brief reference to the fix in the Xcode 10.2 release notes.

There are no references in your project because the prompt comes from part of Xcode itself; it's there so that your apps can use audio services in the Simulator, rather than having to be run on a device. I wouldn't worry about it.

Tim
  • 59,527
  • 19
  • 156
  • 165
  • 20
    In Xcode 11b2, this also comes up for 'access to Documents folder', so knowing where it originated was really helpful. – green_knight Jun 23 '19 at 00:07
  • 18
    I guessed it was Xcode but googled it anyway. It would be useful if the message said it was from Xcode, e.g. 'Xcode component "SimulatorTrampoline.xpc" would like...'. – Vince O'Sullivan Jul 12 '19 at 07:00
  • 66
    That's scary! I've just googled this error message having (I thought) never seen it before and found my own comment (above) from about two weeks ago. – Vince O'Sullivan Jul 30 '19 at 18:39
  • 6
    So should I say yes or no? –  Jun 10 '20 at 05:33
  • It is safe to say yes to this prompt, if you want your apps running in the Simulator to have access to your Mac's audio input. – Tim Jun 10 '20 at 15:36
  • In my case, it was asking for access to the desktop. I think it relates to a Mac Catalyst app I'm working on, which is in a folder on my desktop, so told it yes. Hmm... – leanne Aug 01 '20 at 22:32
  • Thanks for the clarification on what this SimulatorTrampoline.xpc is. Today it asked me for access to files that are managed by OneDrive. I said no. :) – Christian Feb 14 '22 at 06:15
  • With Xcode `14.2` I still have this prompt. Thanks for explaining its origin. – wzso May 20 '23 at 12:21