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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:19:05+00:00 2026-06-14T06:19:05+00:00

I am working on an App update and this version is completely built from

  • 0

I am working on an App update and this version is completely built from scratch and has completely new coreData model schema. I need to write coreData migration from the older model. I have been looking at resources to write coreData migration but all of them need old model file. Since this version is completely new, I don’t have the old model schema.

Is there any way I can write the migration such that it dumps the old model when user updates the app?

Thanks in advance

  • 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-14T06:19:06+00:00Added an answer on June 14, 2026 at 6:19 am

    If you have the old App, then you can recreate the model from the compiled model file which is contained in the App bundle:

    • Sync the App to iTunes, if necessary.
    • Ctrl-Click on the App in iTunes, and use “Show in Finder” to locate the “YourApp.ipa” file.
    • Copy “YourApp.ipa” to a temporary directory, and use “unzip YourApp.ipa” on the command line to extract the archive.
    • In the extracted “Payload/YourApp.app” folder there should be a “XXX.momd” folder containing a file “XXX.mom” (XXX is the name of the model). This is the compiled model file.
    • In your Xcode project (or a temporary project), create a new “Data Model” file “XXX.xcdatamodeld”.
    • Select this file and choose “Editor -> Import …” from the menu.
    • In the import dialog, choose the “XXX.mom” file from above.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an app update and am building this new version completely
Apple's Java update this week removes the Java Preferences.app from Utilities. When working between
I'm working on an update for an already existing iphone app. The existing version
So, while I was working on some code for my next app update, I
I'm still working on my phone book app and I want to update a
I'm working on an iOS App (FW: 5.0+ & ARC) which needs to update
I'm working on some automatic update check code which runs when my app starts
I'm working with an MVC2 app that had migrated from an MVC1 app quite
I'm new to apple's development scene and have been working on an app for
I am working on an app and released 2 updates previously. From the beginning

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.