Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There's a way to access the document folder in iphone/ipad (real device, no simulator)?

there's a way to access a real device (iphone/ipad) document folder? I realized an app that store some data in that folder and i wanted to check if all is going in the right way.

like image 660
Sasha Grievus Avatar asked Mar 05 '13 08:03

Sasha Grievus


People also ask

How do I access the Documents folder on my iPhone?

Tap Browse at the bottom of the screen, then tap an item on the Browse screen. If you don't see the Browse screen, tap Browse again. To view recently opened files, tap Recents at the bottom of the screen. To open a file, location, or folder, tap it.

What is document directory in iOS?

Every iOS app gets a slice of storage just for itself, meaning that you can read and write your app's files there without worrying about colliding with other apps. This is called the user's documents directory, and it's exposed both in code (as you'll see in a moment) and also through iTunes file sharing.


1 Answers

You can do this without iTunes and even if the file is somewhere else in the sandbox other than Documents.

Go to Window/Devices in Xcode.

enter image description here

Next, select your device, and find the app in the list.

enter image description here

Now, look at the little gear icon at the bottom of the devices window. Click that bad boy. enter image description here

See "Download Container..." in the list. Guess what that does? You got it. It downloads the whole sandbox with all the folders in the app's sandbox. Right click and "Show Package Contents".

This should let you see the sandbox of apps that have not yet been released. So, good for testing on a real device.

If you're testing on a simulator life is way easier. Just download the free app OpenSim here . Update: These days I prefer SimSim, also free here.

like image 181
smileBot Avatar answered Nov 05 '22 13:11

smileBot