iPhone模拟器在哪里保存sqllite数据库 [英] Where does the iPhone simulator save the sqllite database
问题描述
我已经看过这个问题几次对SO - 但答案总是似乎大致相同:
/ Users / myName / Library / Application Support / iPhone Simulator / 4.2 / ...
:
我似乎没有这个路径在我的机器上。我的用户文件夹中没有Library文件夹
我可以在驱动器的根目录中找到一个库文件夹,没有iPhone模拟器子文件夹。我只能找到一个iPhone模拟器文件夹是实际模拟器可执行文件存储在哪里,但似乎没有任何数据文件。
我有Mac OS X 10.7.4和Xcode 4.2
一切似乎都工作正常 - 我可以运行模拟器和使用数据库 - 我只是不能找到它的存储位置
是否还有其他标准文件夹可以保存这些数据?方案
您是通过Finder或命令行查找Library目录吗?默认情况下,从Lion开始,库已隐藏。您可以输入
取消隐藏它/ usr / bin / chflags nohidden〜/ Library
,或者只通过命令行导航到这里:
open〜/ Library / Application\ Support / iPhone\ Simulator /
I have seen this question asked a few times on SO - but the answer always seems to be roughly the same:
/Users/myName/Library/Application Support/iPhone Simulator/4.2/ ...
See related questions:
Where does the iPhone Simulator store its data?
where database store in iphone simulator (for Mac OS)?
Yet - when I don't seem to have this path on my machine. I don't have 'Library' folder in my User folder
I can find a library folder in the root of the drive, with an Application Support folder in there - but there's no iPhone Simulator subfolder there. The only place I can find an iPhone Simulator folder is where the actual simulator executable is stored - but there doesn't seem to be any data files there either.
I have Mac OS X 10.7.4 and Xcode 4.2
Everything seems to be working fine - I can run the simulator and use the database - I just can't find where it's stored on the host machine.
Are there any other standard folders where this data might be saved?
解决方案Are you looking for the Library directory through Finder, or on the command line? By default from Lion onwards the Library is hidden. You can unhide it by typing
/usr/bin/chflags nohidden ~/Library
at the terminal, or just navigate there via command line eg:
open ~/Library/Application\ Support/iPhone\ Simulator/
这篇关于iPhone模拟器在哪里保存sqllite数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!