In the sandbox mechanism for iOS development, we learned how to view the sandbox content of the emulator. Go directly to the folder in Finder->, enter:
/users/ligang/library/application support/iphone simulator/
This allows you to view the sandbox contents of the emulator. In peacetime development, we should mostly use the real machine test. If you need to manipulate the files in the sandbox, we can determine whether the file operation is correct by observing the contents of the real-machine sandbox.
If you already know how to view the sandbox for a real machine, check out the other articles, which are just a few more iOS-related articles in the online site search. Next, you'll learn more about how to view the real-machine sandbox in a graphic way. Interested students can continue to look down.
View the real-machine sandbox tutorial open Devices
In the upper navigation bar of Xcode, select Window---Devices
Find target app
We take Iosstrongdemo for example. The interface looks like this:
Browse the Sandbox directory structure double-click Iosstrongdemo
Click Show Container
Settings icon after clicking,:
So we can only see the directory structure of the sandbox. The entity file is not visible. So, our next step is to find this sandbox.
Download Container saved to the desktop
as shown, there is a Download Container, which, after selection, is saved to the desktop.
Right-click to display the contents of the package
View the Sandbox directory
Appdatainfo.plist is the app's profile:
Open AppData
This is the sandbox for the app, Here we can make additions and deletions to the file to check and change the operation. More content to continue to share slowly later.
The source of this article has just been online: http://www.superqq.com/blog/2015/07/23/ ru-he-cha-kan-zhen-ji-de-sha-he-(tu-wen-jiao-cheng-)/
Public number iOS development: Iosdevtip
How iOS View a real-machine sandbox (graphics tutorial)