- Home /
Is there a method for getting application saved data off the iPhone?
Suppose that my iPhone game saves a file to the application's sandbox directory, say under ./Documents. I want to evaluate this file on my development Mac.
If I was using Unity iPhone Advanced, I could just load the file and then email it (or FTP, HTTP, etc.) using the plugin architecture to access the iPhone API. With Unity Basic, I can not access the API. How can I transfer the file off the iPhone?
Answer by bliprob · Jan 06, 2010 at 06:05 PM
You can do this very easily in XCode:
- Open Xcode.
- Open the Organizer window.
- Click on the iPhone in the source list.
- Go to the "Summary" tab.
- In the lower list of applications, scroll down until you find the app whose data you want to retrieve. Click the triangle beside the name.
- You'll see an item called "Application Data" appear under the app. Click the download icon (the down arrow). Pick a location to save the data to.
Answer by TowerOfBricks · Jan 06, 2010 at 09:53 AM
Well, if your game saves the file at some point, why not send it to a php page which emails you the file at the same time? I think the iPhone basic license can use WWW Forms so it would work suposing your file isn't to large.
This is an interesting tecqunique that could be very useful in run-time situations (such as reporting high scores to a centeralized location). For development though, this is probably more work then I would care to do: Find a server, create a submissions page (php, aspx, whatever), write a bunch of code to accept the data, write a bunch more code to email the data, debug the page, etc.