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 6004157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:13:24+00:00 2026-05-23T01:13:24+00:00

I have an application that is finished except for the problem i am trying

  • 0

I have an application that is finished except for the problem i am trying to fix in this question. I have been asking about this before but i guess asked the wrong question so i give it a new go. I do apologize that i have started this tread: refresh SQLITE3 (Core Data) on device and app store and ask again but i am desperate.

Again, i am not asking about writing into the database but refresh the whole, pre-populated, database at build time.

Here is the sequence:

  1. I run the application in the simulator, the DB is located in the documents directory

  2. Type the magic password (which will not be available in the app store code)

    a. The app deletes all records in the DB

    b. Read new/updated data from .txt file and populate the database

  3. Continue or restart the app in the simulator, the DB is updated with new/updated data

  4. Attach my test device, with the app already installed and run a build

    a. All code based changes is reflected and works as in the simulator

    b. The DB is not updated and still shows the “old” data, the updates (2b) is not installed

Here is the problem, i want to update the database via the rebuild but that only works in the simulator. I know i can probably do it via a website or similar but that is not what i try to solve here.

I read somewhere that data in the documents directory is kept at build, is that true?

I guess one scenario is to add the .txt files in the build and update the DB in the app when finding the new .txt file.

Can someone nice give a desperate man some advice and maybe some examples how i should do this so the updated database is also distributed at the build?

====SOLVED====

After a lot of testing i decided to move in the .txt files into the bundle and do the update in the phone rather than moving the sqlite3 DB.

  • 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-23T01:13:25+00:00Added an answer on May 23, 2026 at 1:13 am

    Documents directory contents are not connected with build in any way.
    To make that work, you should copy database to your project folder and add it to your project. Since then it will be copied to your device.

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

Sidebar

Related Questions

I have a application that is about finished. When the phone is online everything
Ok, here's the situation... I have an application that generates about 8 files per
I have a Windows Forms application that I'm working on, but I'm having trouble
I have an application that sends messages to an external web service. I build
I have an application that displays an image inside of a Windows Forms PictureBox
I have an application that reads a CSV file with piles of data rows.
I have an application that uses NHibernate as its ORM and sometimes it experiences
I have an application that I would like to embed inside our companies CMS.
I have an application that sends the customer to another site to handle the
I have VB application that requires visual service pack 6 to run , now

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.