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

  • Home
  • SEARCH
  • 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 6558089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:09:24+00:00 2026-05-25T13:09:24+00:00

In my application i m using sqlite database.when i run it in iphone simulater

  • 0

In my application i m using sqlite database.when i run it in iphone simulater it works fine.but it cant connect database with device.the path for that database is:

 /Users/taxsmart7/Library/Application Support/iPhone Simulator/4.3/Applications/A644750D- 5175-4FF1-BDA7-6EDF65895180/Documents/BillSplitter.sqlite

when i connect with my device the database display blank.

  • 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-05-25T13:09:26+00:00Added an answer on May 25, 2026 at 1:09 pm

    If you need only read sqlite3 database it makes sense to work with database in app bundle.
    You open database as in example:

    NSString *pathname = [[NSBundle mainBundle] pathForResource:@"nameOfYourDatabase" ofType:@"sqlite3"]; // extension could not be .sqlite3!!! Have a look on your db file.
    sqlite3 *database;
    int res = sqlite3_open_v2([pathname UTF8String], &database, SQLITE_OPEN_READONLY, NULL);
    if (res != SQLITE_OK) {
        NSLog(@"Error opening database %@", pathname);
        sqlite3_close(database);
    }
    

    If you need to write in database on first run of your app you need to copy database file from app bundle into app documents directory and then open database for read and write access.

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

Sidebar

Related Questions

My iPhone application uses Core Data and a SQLite database; versions are being tracked
I'm using an SQLite database in my iPhone app. At startup, there are some
I am trying to connect my application to a SQLite database with LINQ-to-SQL, and
Currently I have an application that takes information from a SQLite database and puts
I am working on a .NET app that will also run on iphone via
My application makes use of a SQLite database to store the user's inputs. The
I'm querying rows from my sqlite database using Fetch and loading the results into
I am developing an application with Fluent nHibernat/nHibernate 3/Sqlite. I have run into a
I have an SQLite database within my Android application, which stores dates as integers.
I have a fabric script that attempts to run the tests for an application

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.