Is it possible to view the contents of files in the iOS Application sandbox while debugging?

Will Pragnell picture Will Pragnell · Sep 13, 2011 · Viewed 45.4k times · Source

I'd like to check the contents of an XML file at a specific point of execution while debugging in Xcode. Is it possible to view the contents of the file, either through the Organizer (I'm debugging using actual hardware devices, not the simulator), or by typing in some sort of command into the output/console?

I am using Xcode 4.

Answer

pstoppani picture pstoppani · Oct 10, 2011

Simply open the organiser and click the 'Download' button at the bottom, then right click on the xcappdata file and select Show Package Contents.