Access files in /var/mobile/Containers/Data/Application without jailbreaking iPhone

A program logs some message in directory /var/mobile/Containers/Data/Application on iPhone. Is there any way I can get access to this directory without jailbreaking iPhone? If no, is there any directory on iPhone that I can log into and read my logs without jailbreaking?

asked Jun 27, 2016 at 22:14 ZigZagZebra ZigZagZebra 1,429 3 3 gold badges 15 15 silver badges 25 25 bronze badges

1 Answer 1

If this is your app, if you connect the device to your computer, you can use the "Devices" option on Xcode's "Window" menu and then download the app's data container to your computer. Just select your app from the list of installed apps, and click on the "gear" icon and choose "Download Container".

enter image description here

Once you've downloaded it, right click on the file in the Finder and choose "Show Package Contents".

answered Jun 27, 2016 at 22:31 433k 74 74 gold badges 827 827 silver badges 1.1k 1.1k bronze badges

I found that the data container only has three most recent logs. Is there any way that I can get older logs?

Commented Jun 27, 2016 at 23:39

AFAIK, that container contains everything on the device. Maybe app was reinstalled at some point. Or maybe the logs were purged at some point due to storage constraints. But I'm pretty sure this container contains everything that is available.