iOS Simulator gives 'You dont have permission error'

I am currently on macOS Monterey 12.2 and have started an iPhone 12 iOS 15.0 simulator. On this simulator, if I drop files from desktop or a folder inside desktop, I get an error saying, 'The file could not be opened because you don't have the permission to view it'. However, if this files is moved to some folder inside ~/Builds/SampleFiles/*, the drag and drop copies the files to the simulator. Is something specific needed to be done to provide such an access to the simulator ? I can see that Simulator has 'Full Disk Access' under 'Security and Privacy'.

I just ran into the same error message after installing Xcode 14 Beta 6 running apps on iOS 16 using the iPhone 13 Pro simulator .

I resolved the issue by explicitly granting full disk access to /Applications/Xcode-beta.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator (and to Xcode-Beta itself).

✔️Select new device like se 2 gen, from Xcode toolbar window

Because u can’t even do it again (give permissions (Allow)) and even with reinstalling the application maybe

Try add(drag) .txt file into files app again, give premise. Then add new mp3 files or etc

: )

iOS Simulator gives 'You dont have permission error'
 
 
Q