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

前端 未结 5 1076
忘掉有多难
忘掉有多难 2021-01-30 10:13

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 Org

5条回答
  •  情话喂你
    2021-01-30 10:48

    I have just discovered that you can in fact save the entire contents of the sandbox to disk at any time. Simply open the organiser and click the 'Download' button at the bottom. This saves the sandbox to disk as a .xcappdata file. I'm not sure how to open this as it is, but I have found that if you change the file extension to .xml, you can browse it using finder just like a normal directory.

    It's a shame you can't download single files if required and that the whole process is a little cumbersome, but it does allow me to achieve what I wanted in the end.

提交回复
热议问题