Clicky

iOS Dev Nugget 213 Download Your App Data on iOS Device for Debugging

.

Need to run a code review on your codebase? Hire me

Sometimes you want to grab all the directory and files you wrote into your app's document directory for testing/debugging. When running on the simulator, you can print the document directory and access it directly. How's how you can do it on an actual device:

  1. Plug in your iOS device via USB
  2. In Xcode, choose Window > Devices
  3. Click on your iOS device under DEVICES
  4. Under Installed Apps, click on your app
  5. Click the gear button
  6. Click Download Container

This will download the entire sandbox container, including temp files.

Happy debugging!


Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No

.

.

Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter

.

View archives of past issues