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

  • Home
  • SEARCH
  • 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 6709961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:56:39+00:00 2026-05-26T07:56:39+00:00

I have 2 versions of the core data model, I’m going to migrate the

  • 0

I have 2 versions of the core data model, I’m going to migrate the old version to the new one.

However even if the new version is ticked with the green icon in xCode, I’m not sure I’m using the current version.

How can I be sure I’m using the correct version of the core data model ? Can I output it with the code ?

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-05-26T07:56:39+00:00Added an answer on May 26, 2026 at 7:56 am

    Your application works only with current version (green icon). If you provide possibility to load file with old model you must implement automatic migration from every old version to current or customize this process. More details here: Introduction to Core Data Model Versioning and Data Migration Programming Guide

    Can I output it with the code ?

    For example you can set an identifier (in interface builder) for each model and then use versionIdentifiers method of you NSManagedObjectModel object:

    [[[[[self managedObjectContext] persistentStoreCoordinator] managedObjectModel] versionIdentifiers] anyObject]
    

    Hope it helps.

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

Sidebar

Related Questions

I have several Core Data model version that I have added to my .xcdatamodeld
I have the older version of the core data model of the released app.
I just created a new version of my core data model with an extra
I have an old Xcode project which contains a CoreData model (containing a version
I accidentally managed to lose the old version of our data model, and now
I am using Core Data for my app and I have a model Reservation
I'm using Core data in an iOS project. I have the data model setup
I have a Core Data model entity NoteObject that has a transformable type arrayOfTags
We have two versions of a managed C++ assembly, one for x86 and one
I have an iphone app that uses Core Data to do storage. I have

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.