从设备查看或检索Core Data .sqlite文件 [英] See or retrieve a Core Data .sqlite file from a device
本文介绍了从设备查看或检索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中:
- 打开设备窗口(shift-cmd-2)
- 从左侧列表中选择您的设备
- 从已安装的应用程序列表中选择您的应用程序
- 单击已安装的应用程序列表底部的齿轮图标
- 选择下载容器
- 将容器保存在某个地方
- Xcode将在下面打开容器位置。按住Ctrl键并单击容器,然后选择显示包内容。
- 您现在可以打开documents文件夹并查看应用程序的文件。
- Open the Devices window (shift-cmd-2)
- Select your device from the list on the left
- Select your app from the "Installed Apps" list
- Click the gear icon at the bottom of the "Installed Apps" list
- Select "Download container"
- Save the container somewhere
- Xcode will open the container location in under. Ctrl-click on the container and select "Show package contents"
- You can now open the documents folder and see your app's files.
这篇关于从设备查看或检索Core Data .sqlite文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文