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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:59:33+00:00 2026-05-26T10:59:33+00:00

I have a project from Xcode 3 that I put through the conversion process

  • 0

I have a project from Xcode 3 that I put through the conversion process to make it Xcode 4 compatible. Within this project, all of my NSManagedObject subclasses are inside a group with a “.xcdatamodeld” name.

If I update an entity in my data model with a new attribute, I want the methods for that attribute to be available in my entity’s NSManagedObject subclass.

In Xcode 3, I would select the entities I wanted to regenerate and would select File -> New. This would replace the appropriate classes in the .xcdatamodeld group.

In Xcode 4, it’s the same process, except the generated NSManagedObject subclasses will go anywhere except for that .xcdatamodeld group. Also, I can’t remove any files from this group. There aren’t any error messages or notifications telling why. It just doesn’t do anything when I press the delete key.

The workaround I use is to go to Finder (or Terminal), remove the old classes, and then move the newly generated classes to the .xcdatamodeld directory. Is there a new paradigm that I’m missing or something? The workaround seems unnecessarily tedious.

  • 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-26T10:59:34+00:00Added an answer on May 26, 2026 at 10:59 am

    It appears that the “xcdatamodeld group with NSManagedObject subclass files under it” paradigm has been removed as of Xcode 4. The way it works in Xcode 4 is for the data model to exist as a file node and for the NSManagedObject subclasses to live in a different group in the project altogether. What I did to finish the update to my Xcode 3 project was this:

    1. Remove the reference (only the reference) to the data model from the project.

    2. Go to Terminal and move all the NSManagedObject subclass files that were under the .xcdatamodeld
      directory to a new directory under my source directory. Finder seems to prevent access to the directory, but Terminal does not.

    3. Add the data model back to the project under the “Add existing files to project” menu item.

    4. Add the NSManagedObject subclass files back to the project.

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

Sidebar

Related Questions

I have a linux filter to extract all lines from an xcode project that
I have started a project from an XCode template I have created. When I
I have produced a new Maven Project from gae-archetype-gwt from within IntelliJ, and everything
I have an Xcode 4 project that uses the Google Analytics SDK. The SDK
I have an iPhone (Xcode) Project that was working fine. Something must have been
I have a project based on Xcode's NavigationController template. This template has a navigationController
I have an iOS project that I've put in Dropbox to work with a
I have a project that uses CoreData on iOS and we have gone through
I've got some autogenerated *.m and *.h files (from mogenerator) that I have put
I have a project that usually works with Xcode 4, however since upgrading to

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.