Today, I am working on the sqlite3 database in IOS. I have created a database, but I don't know how to find the data file of DB. sqlite3 in the simulator. The sqlitemanager of Firefox can be used for view, but the DB. sqlite3 file is not found. After investigation, it is found that sometimes the MAC system hides some folders in the resource library. First, make sure that the folders in the resource library are not hidden. Therefore, we need to write the following code:
After the terminal is opened, enter the following:
Chflags nohidden ~ /Library/
You can set it to display the resource library. If you want to hide the resource library, enter:
Chflags hidden ~ /Library
In this way, all the folders will be displayed, and then we will find the program we installed in the simulator and the cached files and database files of the program.
Repository -- then select the first "Application Support" (folder)-"iPhone
Simulator "-" "5.0" (if the version generated by the simulator is 5.0, if the version is not selected) -"application"-> at this time, there will be a bunch of directories with similar guids, one by one, find the directory of the project name you are looking for --> Documents folder -- you have succeeded in dB. sqlite3 is here.
Then open sqlitemanager of Firefox to open the file. You need to change the extension to. SQLite ). Okay, everything is OK!