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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:19:29+00:00 2026-05-15T12:19:29+00:00

Using Lightweight Migrations for my Core Data data model. Each update has gone smoothly…in

  • 0

Using Lightweight Migrations for my Core Data data model. Each update has gone smoothly…in the simulator.

On my device, I had not gone through each migration one-by-one. For example, my device had version 3, and I was on version 5. On the simulator, I went from 3 to 4 and then from 4 to 5, but when the device attempted to go from 3 to 5, it crashed with the standard “Can’t find model for source store” error.

This would seem to make updating my application impossible if I were to depend on lightweight migrations (i.e. users couldn’t skip an update to my app).

Is this the case, or is it likely I’m doing something else wrong?

  • 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-15T12:19:30+00:00Added an answer on May 15, 2026 at 12:19 pm

    Lightweight migrations are intended to be accumulative. This is especially true if you don’t use formal versioning.

    I always tell clients that lightweight migration is intended largely for development purposes. You’re counting on a piece of software being able to puzzle out the changes between versions. The smaller and simpler the changes the better the software can manage. At some point the change become to complex for the software to handle.

    Without formal versioning you can in principle you skip a “version” as long as the software can figure out the changes. In practice, the migration software is easily confused and will break if you make any substantial changes.

    For deployment, you should always plan on using “full-weight” versioned migration. This is especially true if you envision many updates. Do you expect the software to be able to handle a migration from version 1 to version 5 or higher as well as any between any two or more versions in between?

    Remember as well that the previous model file has to be present for any migration to work. If you intend to skip versions, formal or otherwise, you have to retain all the model files for all the previous versions you want to migrate. If your update for version 5 does not provide or retain the model for version 3, you can’t perform any migration of the existing store. In practice, this means shipping each version with all previous versions’ model files. It’s usually easier and safer to upgrade in series and end users are used to doing so.

    It’s really impossible to tell what your actual problem is in this case without looking at the models in detail. It could be a simple as the migration being to complex for the lightweight migration software to handle. The software can’t understand how version 5 maps onto version 3.

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

Sidebar

Ask A Question

Stats

  • Questions 460k
  • Answers 460k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'm blatantly ripping off some example code from the Wikipedia… May 15, 2026 at 11:39 pm
  • Editorial Team
    Editorial Team added an answer I can't think of any good reason to do anything… May 15, 2026 at 11:39 pm
  • Editorial Team
    Editorial Team added an answer The option element is always temperamental. Perhaps it's simpler to… May 15, 2026 at 11:39 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.