从设备查看或检索Core Data .sqlite文件 [英] See or retrieve a Core Data .sqlite file from a device

查看:58
本文介绍了从设备查看或检索Core Data .sqlite文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何才能真正看到真实设备(而非模拟器)上的Core Data存储的.sqlite文件?是否有工具可让您查看核心数据信息?

How can I actually get to see the .sqlite file for the Core Data store on a real device (not simulator)? Are there tools that allow you see the Core Data information?

推荐答案

在Xcode中:


  1. 打开设备窗口(shift-cmd-2)

  2. 从左侧列表中选择您的设备

  3. 从已安装的应用程序列表中选择您的应用程序

  4. 单击已安装的应用程序列表底部的齿轮图标

  5. 选择下载容器

  6. 将容器保存在某个地方

  7. Xcode将在下面打开容器位置。按住Ctrl键并单击容器,然后选择显示包内容。

  8. 您现在可以打开documents文件夹并查看应用程序的文件。

  1. Open the Devices window (shift-cmd-2)
  2. Select your device from the list on the left
  3. Select your app from the "Installed Apps" list
  4. Click the gear icon at the bottom of the "Installed Apps" list
  5. Select "Download container"
  6. Save the container somewhere
  7. Xcode will open the container location in under. Ctrl-click on the container and select "Show package contents"
  8. You can now open the documents folder and see your app's files.

这篇关于从设备查看或检索Core Data .sqlite文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆