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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:58:19+00:00 2026-05-20T16:58:19+00:00

I am in the process of creating my first iPhone app. The app currently

  • 0

I am in the process of creating my first iPhone app. The app currently uses core data with a sqlite database. The content stored in the database will stay static in the app, however down the road we may want to add more content to the app – this is where my issue is.

I know down the road I will not be in charge of maintaining the app, and those in charge may not be tech savvy – so I’d like to make it as easy as possible to update content. The more and more I read about updating using core data, the more it makes me think that it will be impossible to easily update the content. I’d also like to distribute updates via the app store (right now I am not allowed to store any data on a web server).

In my ideal setup, I’d like to be able to write a front-end (not on an iphone) for the database and have my users update the db content via a user-friendly GUI. Then simply take this updated db and push it out via the app store. Is this possible while still using core data? I’m reading about versioning and migration, and it all just seems really complex for my simple app (or have I mis-intrepreted this)? Would I be better off to just use a sqlite db without core data?

Anyways, I’m interested to hear any ideas on updating content with or with core data.

Thanks

  • 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-20T16:58:20+00:00Added an answer on May 20, 2026 at 4:58 pm

    I am currently doing exactly what you listed (minus the user friendly interface, mine is just a command line tool). It works great, I build and run the tool and it regenerates my core data persistent store sqlite database using a plist file. When you push out your app, files with the same filename will be overwritten. If your sqlite db for Core Data is called “asdf.sqlite” then you just make sure it is included with your new bundle and it will replace the older one.

    HOWEVER, be careful about making changes to your data model. In this case you will need to perform data model migration and map the old model to the new one. If you try accessing a core data persistent store using an older data model, you will encounter run time errors.

    If no one ever makes changes to the data model then you’re fine. Just use your custom tool for rebuilding the database and you can hand the project off to someone else.

    Re:

    As for regenerating the core data
    persistent store … how exactly are
    you accomplishing this? How do you
    know when to update the store or do
    you create the store every time the
    app runs?

    My command line application has references (symlinks) to the same data models and entity source code as the iPhone app (this way changes in the iPhone project will be available to my command line tool). My project looks for a plist file and I had to custom program the app to run through the entire plist file and add that information to the core data database. Each time I run the application it will delete the old sqlite file and replace it with a new one. So if I needed to have someone else manage my application they would just need to know how to modify that plist file and how to run the command line application. Out pops a sqlite database in the debug folder where the application is built.

    My application is a reference tool, so I only need to update my core data db when the reference material changes. When I do make changes, I copy the resulting sqlite file to my iPhone project and make sure it gets copied into the app bundle.

    BTW, this approach only works if you plan on shipping READ ONLY data on your app. If the same persistent store will be written to when the deployed app is being used, then every time you update it the user’s changes will be lost. You can get around this by using multiple stores (one for read only and one for data written by the user).

    The method I described assumes you are only making updates to the core data db through app store updates. If your core data generation code is inside your iphone app then you could regenerate the code everytime the app runs but it wouldn’t be needed if the data is static and not expected to change until you update the app.

    RE:

    Does your app rebuild the sqlite db in
    the documents folder each time it runs
    as well?

    Short Answer: No, my iPhone app does NOT rebuild the sqlite db each time it runs. My iPhone app NEVER rebuilds the db.

    Long Answer: To clarify once more, there are two applications. App1 is the iPhone app that uses the core data db, and App2 is the desktop app that generates the core data db. Originally, there was only App1, the iPhone app. Each time the iPhone app ran, it would regenerate the sqlite db from a plist (XML) file. Since my db is very large, it increased the load time of my app by a LOT. This was unacceptable, so I made it so that the iPhone app only generated the db when it could not find the db file (an indication that the app is being run for the first time). Then I realized that there was no need to make the app load extra long the first time, so I removed that code completely from my iPhone application and made a separate Mac OSX command line application, app2, to handle generating the sqlite db. This program, app2, only runs on my computer, so I have to take the generated sqlite file and manually place it in my iPhone app1 project. This rebuilt sqlite db file is only made available to the user when I submit an update to the App Store.

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

Sidebar

Related Questions

I am in the process of creating an iPhone app that requires to interact
I am in process of creating my first app and have some confusion over
I'm prototyping a simple sports sim game for iPhone which will use Core data.
I am in the process of creating my first website which I hope will
I am currently updating an app to use Core Data. The app you could
I am in the process of creating an app, and one of the pieces
I'm in the process of creating a web service that uses XML to handle
I'm in the process of creating an app. I'd like to have a pared
I'm in the process of creating a universal iOS app that, amongst other functions,
I'm currently in the process of creating a WCF webservice which should be compatible

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.