How to drop files on Device in App Sandbox for Testing?
I want to drop some files in my application's sandbox on the device for testing. Using iTunes to try to find the sandbox has not helped.
How do I browse to /var/mobile/Applications/{My App UUID}/Documents
so I can dr开发者_StackOverflow社区op some files for testing?
On the simulator you will find the document directory for your application in:
/Users/.../Library/Application Support/iPhone Simulator/User/Applications//Documents
And programmatically you can access that folder with these lines:
NSArray *paths = NSSearchPathForDirectoriesInDomains(
NSDocumentDirectory,
NSUserDomainMask, YES);
NSString* docDir = [paths objectAtIndex:0];
If you need to drop the files on the phisical device, you can use DiskAid
精彩评论