Search code examples
iphoneobjective-ccocoa-touchsandbox

Copy a file from iPhone sandbox to Desktop?


I am developing an iPhone app for uni and we create an sqlite database file within the iPhone's sandbox directory.

Our application writes internally to this file, I am wondering how it would be possible to get this file back to my desktop. I don't really mind how it can be done, any way is fine. Maybe it is possible to even do something like emailing it from the app (if that is possible). Just a suggestion if anyone knows a way.

Thanks in advance.


Solution

  • You can use the Organizer.

    Connect your iPhone and choose Window->Organizer in Xcode.

    Lots of options there, including what you're looking for. Specifically, click your iPhone under Devices, then in the Summary section find your app under Applications. Click the triangle next to your app which should reveal your Application Data with an arrow button to download it to your Mac.

    Good luck!