Storage location of program files and databases in iPhone simulators during iOS development

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.