iPhone 模拟器在哪里存储其数据? [英] Where does the iPhone Simulator store its data?
问题描述
我有一个用于存储应用程序数据的 SQLite 数据库,我可以查看它的内部以调试我遇到的问题 - 但是 iPhone 模拟器通常在哪里存储其数据?
I have a SQLite DB that I'm using to store app data, and I could do with taking a look inside it to debug a problem I'm having - but where does the iPhone Simulator store its data, typically?
推荐答案
For Xcode6+/iOS8+
~/Library/Developer/CoreSimulator/Devices/[DeviceID]/data/Containers/Data/Application/[AppID]/
接受的答案对于 SDK 3.2 是正确的 - SDK 4 将该路径中的 /User 文件夹替换为它可以模拟的每个旧 iPhone OS/iOS 版本的编号,因此路径变为:
Accepted answer is correct for SDK 3.2 - SDK 4 replaces the /User folder in that path with a number for each of the legacy iPhone OS/iOS versions it can simulate, so the path becomes:
~/Library/Application Support/iPhone Simulator/[OS version]/Applications/[appGUID]/
如果您同时安装了之前的 SDK,其 3.1.x 模拟器将继续将其数据保存在:
if you have the previous SDK installed alongside, its 3.1.x simulator will continue saving its data in:
~/Library/Application Support/iPhone Simulator/User/Applications/[appGUID]/
这篇关于iPhone 模拟器在哪里存储其数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!