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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:27:03+00:00 2026-05-23T07:27:03+00:00

I have made the mistake when starting the coding an iPhone App of not

  • 0

I have made the mistake when starting the coding an iPhone App of not adding a prefix to my classnames, and as such have a conflict (A CoreData class called Category). The project build fine until the recent update of Xcode, and only now I realize the mistake.

Is it possible to rename CoreData classes while keeping a working system after update?
If I add a new version to the Datamodel and rename the class, the App updates, but it seems that the old table is deleted and a new (empty) one created. Obviously all the links subsequently are broken. I would like to maintain the data while making the change.

In Java EE you can overrule the table name if I remember correctly, and as such I could stick to the old class name to name the table. Is there any such possibility with CoreData?

Thanks in advance! I have to find a way to update the DB without all the Apps out in the field breaking.

  • 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-23T07:27:03+00:00Added an answer on May 23, 2026 at 7:27 am

    Actually, it i documented quite well by Apple:

    If you rename an entity or property,
    you can set the renaming identifier in
    the destination model to the name of
    the corresponding property or entity
    in the source model. You typically set
    the renaming identifier using the
    Xcode Data Modeling tool, (for either
    an NSEntityDescription or an
    NSPropertyDescription object). In
    Xcode, the renaming identifier is in
    the User Info pane of the Detail Pane,
    below the version hash modifier (see
    The Browser View in Xcode Tools for
    Core Data). (Mac OS X Developer Library )

    But actually for me it seems to work just to change the Classname and leave the rest of the model alone.

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

Sidebar

Related Questions

I am an intermediate C programmer. If you have made any coding mistake that
I have made a little app for signing up for an event. User input
I have made a class which a form can inherit from and it handles
I have made this mistake several times, and found myself referencing This Post every
So, I may have made a mistake in updating my application to iOS 4.0
I have made a huge mistake. Initially I created my model with a field
I have made a mistake when designing my application database several years ago and
I am working on a project for an online class I made the mistake
My friend said he thinks i may have made a mistake in my programme
I have made a program with a scroll pane, but it is not working.

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.