The sandbox mechanism (sandbox) in iOS is a security system that specifies that an application can only read files within a folder created for the app and cannot access content elsewhere. All non-code files are saved in this place, such as slices, sounds, attribute lists, and text files.
1. Each application is within its own sandbox
2. You can't go across your sandbox to access the contents of another application sandbox
3. Applications requesting or receiving data outside the application require permission authentication
To view the storage location of the emulator's sandbox folder on your Mac computer, first of all, this folder is hidden, so to display these files first, open the command line:
command to display Mac hidden files: Defaults write Com.apple.finder appleshowallfiles-bool true
command to hide Mac hidden files: Defaults write Com.apple.finder Appleshowallfiles-bool false
Then restart the Finder, tap the apple logo in the upper left corner of the screen-force quit-Select Finder and click Restart, this time you can reopen the Finder to see the hidden files.
Another simple way is to directly click the Finder icon right--go to the folder--enter/users/your username/library/application support/iphone simulator/, and then confirm it. Your username is your native user name
Then press into the appropriate folder, you can go to the emulator's sandbox file directory:
And then into a simulator version, and here I am 5.1
Then you can see that the applications is stored under the simulator installed in the development of the application, casually into one can see, a sandbox contains four parts:
This is the. app file, which is a running application file, documents, Apple recommends that the files created in the program or browse to the program in the file data stored in the directory, itunes backup and recovery will include this directory; library, default settings for stored programs, or other status information ; library/caches: Store cached files, itunes does not back up this directory, files in this directory will not be deleted in the app exit, TMP, where temporary files are created and stored.
Sandbox mechanism in iOS