12

Recently updated to Xcode 11 GM seed 2 (11A420a) and I when running my app on a simulator (iPhone Xs Max (probably irrelevant)) a dialog popped up asking permission to access my iCloud.

Why? Apple did not provide any reason as to why which felt strange?

"SimulatorTrampoline.xpc" wants to access files managed by "iCloud Drive".

I actually accepted... because I did not want any strange incorrect behavior of my simulator.

But feels kind of ironic that Apple forces us, developers, to provide reasons (displayed to users of our apps) why we want to access the user's camera for instance, but here Apple did not provide any reason text themselves...

Sajjon
  • 8,938
  • 5
  • 60
  • 94
  • 1
    SimulatorTrampoline is a proxy that takes responsibility for all processes inside the simulator. It doesn't know why simulator processes want access so it can't provide a reason. If it didn't exist you'd get prompted many more times. For some reasources (like Microphone) you'd get a macOS prompt and an iOS prompt inside the sim. – russbishop Oct 12 '19 at 04:09
  • 2
    That's a lame excuse. The reason could simply be that the Xcode Simulator would like access to your "whatever". Or an explanation like you just gave about what SimulatorTrampoline is. No explanation is much worse than either of those. There's nothing wrong with explaining what the root reason for the message is. Even a link to an article would be better than what is produced now. And why do I get the popup when I'm not even using Xcode actively? – Victor Engel Feb 23 '20 at 23:03
  • Something along these lines would be better: When building for the first time users may get a popup stating that SimulatorTrampoline would like access to Desktop Files because ibtool running in simulator needs access to these files to compile storyboards. (51114450) Workaround: Allow access to the files in the prompt. https://developer.apple.com/documentation/xcode_release_notes/xcode_11_release_notes – Victor Engel Feb 23 '20 at 23:14

1 Answers1

10

You are officially recommended to click "Allow/Ok" by Apple (as a "workaround").

This is a "KNOWN ISSUE" per ..

.. Apple's OWN formal release-notes @ https://developer.apple.com/documentation/xcode-release-notes/xcode-11-release-notes

Sarma
  • 332
  • 2
  • 6
  • This is a good point, but I am getting the same issue now with Xcode 14.3 and I did not install an update it recently, but the simulator is running for a few days in the background, suddenly I get prompted for the file access, does anybody have the same issue? – dimib Apr 25 '23 at 18:58