Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8647819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:09:55+00:00 2026-06-12T13:09:55+00:00

I am building my first iPhone app with CSS, HTML, Javascript and PhoneGap. I

  • 0

I am building my first iPhone app with CSS, HTML, Javascript and PhoneGap. I want to use SQLite as the database, so i am using the following tutorial as inspiration:

http://coenraets.org/blog/2011/10/sample-app-using-the-phonegap-database-api/

The following code determines weather to use data from the database, or to populate the database with data first:

function onDeviceReady() {

    db = window.openDatabase("EmployeeDirectoryDB", "1.0", "PhoneGap Demo", 200000);
    if (dbCreated)
        db.transaction(getEmployees, transaction_error);
    else
        db.transaction(populateDB, transaction_error, populateDB_success);
}

After debugging, i found out that every time i run the app, it populates the database, so

if (dbCreated)

never executes.

I want to have a look at the SQLlite file, so i am using SQLite Database Browser to locate it, without luck. From the following question:

How to view the data in sqlite file running in iphone application?

I can see that the file should be located somewhere in this folder:

user/Library/Application Support/iPhone Simulator/

But the iPhone Simulator folder does not exist.

How do i make the simulator save the database to a local file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:09:56+00:00Added an answer on June 12, 2026 at 1:09 pm

    Each time you run your application on simulator, it creates a folder inside iphone simulator folder .Make sure your Library folder is visible and you are using the correct path.

    To make library folder visible you can run the following command on terminal:

    chflags nohidden ~/Library

    Here`s the path for my iphone simulator folder to use as a reference:

    /Users/alexandreoliveira/Library/Application Support/iPhone Simulator

    Another thing to notice, usually the sqlite database get saved inside documents folders:

    Users/alexandreoliveira/Library/Application Support/iPhone
    Simulator/5.1/Applications/some-weird-numbers/Documents/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building an iPhone app using jQuery Mobile, jQuery 1.7.2, and PhoneGap trying
I am building my first iPhone app, and I want to get started with
I am building an app using Phonegap and jQuery mobile... On my index.html page,
I am in the process of building my first iPhone app (xCode,objective-c) which has
I am building my first iPhone/Obj-c app and I have a large amount of
I am following the tutotial on Apple's website for building your first iPhone application,
I'm building an iPhone app, with the following structure: I have the MainViewController which
I'm quite new to iPhone development and I'm building my first app :) In
I'm building my first iPhone app and I'm stymied. I'm trying to build an
Building my first serious Node.js project (using Express). I need to use several calls

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.