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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:06:25+00:00 2026-05-23T10:06:25+00:00

I added an attribute to a Core Data model (iOS). I was on version

  • 0

I added an attribute to a Core Data model (iOS). I was on version 2, so I added a new model and saved the new attribute under version 3.

My loading code is standard (initializing a MOM using initWithContentsOfURL: pointing at my .momd directory inside my bundle), then passing that MOM to a NSPersistentStoreCoordinator.

Then, I download my app from the App Store, run it, and then try to test the migration. Lightweight migration is working fine on my Simulator and my phone in Debug (tethered to Xcode 4).

However, when I sync a Release build (using the “Archive” feature on Xcode) using iTunes, my app’s data store fails to migrate with this error:

Error Domain=NSCocoaErrorDomain Code=134130 "The operation couldn’t be completed.
(Cocoa error 134130.)", reason=Can't find model for source store}

Worse yet, the store gets lost in some voodoo state where it cannot escape – if I re-tether the device and install a Debug build from Xcode again, I can’t “recover” the migration.

The error message above omits the details about my entities. I can provide that if helpful, but any ideas on what might be wrong here? I’ve read just about every question on SO about this error code and so far all of them have failed to produce a result.

I tried a manual migration, but it also yielded an error. However, since I only added 1 attribute to 1 entity, it doesn’t make sense that lightweight migration isn’t working.

  • 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-23T10:06:25+00:00Added an answer on May 23, 2026 at 10:06 am

    Every time I’ve seen this problem, in my code or someone else, it has been XCode getting into some kind of bad state with regards to the model versions it deploys in the application. Open the Release IPA archive of your app, and look at what mom files are in it. If you see one of the previous versions missing, that is likely this same problem. As for a solution, I’ve had mixed results; some variation of the following steps works for me, but never in a consistent order.

    • Clean & delete the derived data for the project (make sure you have an archive of your released app saved so you can symbolicate if necessary)
    • Rename the previous model version files (in xcode), adding or removing the space between the name and the digit representing the version number (if it has a space, replace with ‘_’, if it doesn’t have a space try adding one)
    • Add a new version of the model, without changing any of it’s content, and make it the ‘current’ version

    I know these steps seem like grasping at straws, which is exactly what it feels like whenever this happens to me. You might consider using one of your support incidents with Apple, it would be nice to know what their official answer to this issue is.

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

Sidebar

Related Questions

I'm trying to expand my Core Data. So I added a new attribute to
I created new version of CoreData model (added one new attribute to entity) and
I've released an app with a Core Data sqlite database. In the new version
I added a new entity to my model and it loads fine but no
I created a fresh project with a core data template. then I added a
I have a core data model with an entity called clients that is made
I'm developing a Core Data app that uses a model object called Location. The
Added : I am conducting a study for a new system we're going to
I am working on an app that uses Core Data as its backend for
Imagine if you will a Core Data app with two entities (Employee, and Department).

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.