有没有办法让你的SQLite数据库关闭iPhone? [英] Any way to get your SQLite DB off iPhone?

查看:106
本文介绍了有没有办法让你的SQLite数据库关闭iPhone?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在做一些测试后分析我的iPhone应用程序中的数据,并且数据在SQLite数据库中。有没有办法让我能够将它从iPhone上复制回我的笔记本电脑?我不知道任何允许我进行文件系统样式访问的机制。

I'd like to analyze the data that I have in my iPhone app after doing some tests, and the data is in a SQLite database. Is there any way for me to be able to copy it off of the iPhone back to my laptop? I'm not aware of any mechanisms that allows me filesystem style access.

推荐答案

你不需要打开文件共享在应用程序中,您可以通过Xcode的设备窗口获取您构建的任何应用程序的数据。

You don't need to turn on file sharing in the app to get this, you can get the data for any app you've built via Xcode's devices window.

在Xcode的最新版本中(8及以上,我想想),用 Window 菜单 - > 设备打开它。在设备列表中查找设备,然后查看设备的已安装应用程序列表。将列出您在设备上构建和安装的每个应用程序(可能还有其他应用程序)。选择您的应用,然后点击列表下方的齿轮菜单。单击弹出菜单上的下载项将使您可以将应用程序的文档,库和其他目录复制到Mac。

In recent versions of Xcode (8 and up, I think), open this with Window menu --> Devices. Find the device in the device list and look at the installed apps list for the device. Each app that you've built and installed on the device will be listed (and maybe some others). Select your app and click the gear menu below the list. Clicking the "Download" item on the pop-up menu will enable you to copy the app's documents, library, and other directories to your Mac.

注意:这将下载.xcappdata文件。右键单击它并选择显示包内容将允许您深入查看实际的sqlite文件。

NB: This will download an .xcappdata file. Right-clicking on that and selecting "Show Package Contents" will allow you to drill down to the actual sqlite file.

这篇关于有没有办法让你的SQLite数据库关闭iPhone?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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