开发者

location of database created by the application

开发者 https://www.devze.com 2022-12-19 09:21 出处:网络
I have opened a database using sqlite3 in my application. When i run the application in the simulator, this database might be created and开发者_运维百科 i\'m playing with it. But now i need to know th

I have opened a database using sqlite3 in my application. When i run the application in the simulator, this database might be created and开发者_运维百科 i'm playing with it. But now i need to know the location (to be accessed from ma mac) where this database is created. Surely it is not in the application folder as i'm not seeing it. I doubt it to be somewhere in the location where the simulator is installed. Anyone knowing the location. pls help me finding it.


If you're looking for the actual file on your Mac, try looking in this folder:

/Users/YOURUSERNAME/Library/Application Support/iPhone Simulator/User/Applications/

There should be a bunch of folders with long names. If you've recently built your app for the Simulator, order the folder by Date and the newest will be at the top. The folder contains a Documents folder, but you can also right-click on the app to "Show Package Contents", which might contain your database.sqlite file.

0

精彩评论

暂无评论...
验证码 换一张
取 消