How to access application data on an iOS 8 device from terminal? How to access application data on an iOS 8 device from terminal? shell shell

How to access application data on an iOS 8 device from terminal?


I found a utility called ifuse (https://github.com/libimobiledevice/ifuse) which lets me mount the sandboxed root folder of the app and copy the file to my local machine:

# E.g. ifuse --container com.blah.yourappname <mountpoint>ifuse --container ${BUNDLE_ID} ~/mnt# I found I needed to sleep for a few seconds before trying to access# the filesystem, otherwise I'd get "Device not configured" errors...sleep 5 cp ~/mnt/Library/Caches/Logs/${LOG_FILE} ~umount ~/mnt

Hope this helps someone else!