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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:07:25+00:00 2026-06-15T12:07:25+00:00

I have an existing project that uses Core Data, and I have 3 versions

  • 0

I have an existing project that uses Core Data, and I have 3 versions within my xcdatamodeld bundle. So far I have only used lightweight migration as I have mostly added new parameters and entities, however I now wish to move an existing parameter into a new entity. I realise that I have to crete a mapping model to do this in order to get the data migrated between the parameters.

I presume there are users out there with very old versions of the app using version 1 of the model, and others using version 2 and 3.

Questions:

  1. Do I need to create a mapping model from all existing versions to the new version, or just from the latest version
  2. Do I need to change/disable the lightweight migration options on my NSPersistentStoreCoordinator? Currently I have the following options enabled:

    NSMigratePersistentStoresAutomaticallyOption
    NSInferMappingModelAutomaticallyOption

I presume that lightweight migration will still be required to move from v1 to v2 to v3, however the new mapping model is required to go from v3 to v4. I’ve had a look around, but I can’t find any information on how this all happens as most tutorials only cover 2 versions.

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-06-15T12:07:26+00:00Added an answer on June 15, 2026 at 12:07 pm
    1. Just from the latest version.
    2. No.

    Migrations are sequential (which is the reason why you need to keep all model versions present, even if no migration from the first version is anticipated.

    The NSMigratePersistentStoresAutomaticallyOption will only do the automatic migration if no mapping model is present.

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

Sidebar

Related Questions

I have an existing project that i'm working on that uses .net membership. We
I have an existing project that (sadly) uses underscore.js, rather than an ES5 shim,
I have an existing project that uses @Override on methods that override interface methods,
I have an existing Java project in Netbeans that uses Swing and I would
I have an existing VB project that uses InstallShield to create the instalation files.
I have a project that I'm working that uses XSLT to display data from
I have an existing asp.net webforms project that uses Microsoft's Enterprise DAAB for the
I have an existing project that builds fine using my IDE. I'd like to
I have an existing project that consumes web services. One was added as a
I have an existing report (Crystal Report) in my Visual Studio project that is

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.