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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:51:44+00:00 2026-06-13T05:51:44+00:00

I have an App active in the AppStore which comes with a populated data

  • 0

I have an App active in the AppStore which comes with a populated data store. Now I want to push a new version with a slightly updated schema and a new set of data. The old data doesn’t matter. If I simply push a new version of the app, I believe existing users will encounter an error with an incompatible datastore… how can I avoid this? I don’t need to migrate existing data, it’s all in the new app.

EDIT:

FYI, here is the URL where I’m loading the persistent store in my object manager:

NSURL *storeURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"MyObjects" ofType:@"storedata"]];
  • 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-13T05:51:46+00:00Added an answer on June 13, 2026 at 5:51 am

    EDIT:

    If you store the persistent store in the main bundle (hence it is read-only), you should not worry, because the new persistent store (also included in your app bundle, I suppose) will just plainly overwrite the old one.

    I think that deleting the existing store file and then creating a new one should do it.

    If _storeURL is the path to your store file, you can delete like this:

    NSError *error = nil;
    if ([fileManager fileExistsAtPath:_storeURL.path])
      [fileManager removeItemAtURL:_storeURL error:&error];
    

    Of course, this should be done only on the very first launch of your latest app version. This could be achieved by storing a key in NSUserDefaults after deleting/recreating the store and having the program do the delete/create only when on launch the key is not there.

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

Sidebar

Related Questions

I have app in which i have recorded sound files i want that i
I have an application at app store. I have created an update version of
I have a 3.0.7 app using active scaffold from github vhochstein/master. I am using
I have implemented a Pin-Lock viewController such that every time app becomes active, the
I have a web app that uses the Active Directory Membership Provider and when
I have trouble with my app, when i'm trying to get active user from
Possible Duplicate: Error loading Active Record gem with sinatra app using RVM I have
We have App A as main app. Now we build from it App B
I have an app that only has one text field and I want that
I have a nice little app on the app store that does pretty well

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.