开发者

How to drop files on Device in App Sandbox for Testing?

开发者 https://www.devze.com 2023-02-16 00:43 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号