iOS in the development process generally use the real machine to test, the real machine view sandbox tried itools and Ifunbox both after iOS upgrade to 9.0 lost effect. Find a way to view your real-world sandbox files via Xcode on the web
In the sandbox mechanism (sandbox) of iOS development, we learned how to view the sandbox content of the simulator. Go directly to the folder in Finder-> to 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 of a real machine, check out the other articles here, where the online site search can search for more articles about iOS development. 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
Take Izar Software Example:
Download Container Save to desktop
As shown, there is a download Container, which, after selection, is saved to the desktop.
After saving to the desktop
Double-click to open Package contents
This is the sandbox of the app, where we can make additions and deletions to the file to check and change the operation
Supplemental View Simulator Sandbox method:
1. In the code, add:
NSLog(@"沙盒路径:%@", NSHomeDirectory());
You can print out the path of the sandbox in your computer and view it directly in the Finder using the Command+g input path
2. Using the software simpholders
Download Link:
https://simpholders.com/
ios-viewing a real-machine sandbox file (with XOCDE) + Emulator view sandbox files