在iphone模拟器中打开sqlite数据库文件? [英] Open sqlite database file inside iphone simulator?

查看:158
本文介绍了在iphone模拟器中打开sqlite数据库文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力了解我的iphone应用程序中的问题。



我的sqlite数据库中有一个set方法,看起来它正在工作精细。我在设置值时执行NSLog并且它是正确的。这是一个值为2010-10-10 12:13:14的字符串。



当我对相同数据使用get方法时,结果证明价值不正确。它返回1.



有没有办法打开iPhone模拟器内部的数据库文件,这样我才能看到模拟器数据库中存储的实际数据是什么? / p>

有没有办法嗅探我的模拟器和实际文件之间的sqlite调用?像Charles或Service Capture这样的东西?



非常感谢!

解决方案

您可以参考以下链接,您可以查看模拟器中存储的数据库。



如何查看在iphone应用程序中运行的sqlite文件中的数据?



干杯


I'm having a hard time trying to understand a problem in my iphone app.

I have a set method in my sqlite database that looks like it is working fine. I do a NSLog when I am setting the value and it is correct. It's a string with the value "2010-10-10 12:13:14".

When I use the get method on the same data, it turns out that the value is not correct. It returns 1.

Is there any way to open the database file that is inside the iPhone simulator so I can see what is the actual data stored in the simulator database?

Is there any way to sniff the sqlite calls between my simulator and the actual file? Something like Charles, or Service Capture?

Many thanks!

解决方案

You can refer to the following link below,You can definitely look at the database stored inside the simulator.

How to view the data in sqlite file running in iphone application?

Cheers

这篇关于在iphone模拟器中打开sqlite数据库文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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