Use Xcode to see files written by iOS app?

Years ago, one could use a window in Xcode to select an app being developed on an iPhone, and see the *.sqlite files that the app used for Core Data. One could copy those files back onto the Mac, and so preserve the current state of the app's data.

I've tried to get back to that window in the current Xcode, but with no joy. Can anyone give me a clue as to how to preserve a Core Data state for an iOS app?

I'm answering my own question:

  • With the device plugged in, open the Devices and Simulators Window
  • Select the device
  • You will see a table view of Installed Apps
  • Select the app of interest
  • At the bottom of the table view is the "gear" icon -- select it
  • Download Container will work, despite Show Container being empty
  • Using control-click in the Finder to Show Contents allows drilling down to the *.sqlite files.

If you're using the Simulator, there are various macOS utility apps, which let you easily view the Simulator files.

  • I use SimPholders.

There's also one called simMagnifier, which lets you veiw (and even edit) Core Data content.

Use Xcode to see files written by iOS app?
 
 
Q