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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:01:09+00:00 2026-05-18T10:01:09+00:00

I am following Apples Core Data Tutoriol but implementing it into my own Project,

  • 0

I am following Apples Core Data Tutoriol but implementing it into my own Project, this means I’ve not started by creating a Project using Core Storage Data. So I’ve been copying and pasting quite a lot of the stuff that should of been automatically made for me, and I have run into a problem.

I am getting this error:

* Terminating app due to uncaught exception
‘NSInvalidArgumentException’, reason:
‘*
-[NSURL initFileURLWithPath:]:
nil string parameter’

Which happens in this function:

- (NSManagedObjectModel *)managedObjectModel {

    if (managedObjectModel_ != nil) {
        return managedObjectModel_;
    }
    NSString *modelPath = [[NSBundle mainBundle] pathForResource:@"Assignments" ofType:@"momd"];
    NSURL *modelURL = [NSURL fileURLWithPath:modelPath];
    managedObjectModel_ = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL];    
    return managedObjectModel_; 

}

I have my data model in the Resources Group and its named “Assignments.xcdatamodel” so I’m stuck on what the problem is.

I am thinking in some configuration file I need to change something, or perhaps its just a simple path mistake?

Any help is much appreciated.

  • 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-18T10:01:09+00:00Added an answer on May 18, 2026 at 10:01 am

    If you have a single version of the object model in your project you may need to use “mom” as the extension instead of “momd”. Give it a try and see if it helps!

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

Sidebar

Related Questions

Been following the Core Data tutorial on Apple's developer site , and all is
I am using Core Data programmatically (i.e. not using .xcdatamodel data model files) in
I am using Apple's CoreDataBooks sample project as a learning aid for core data.
I have setup my first core data project. Everything works fine until I do
Following this question: Good crash reporting library in c# Is there any library like
Following on from this question what would be the best way to write a
Following techniques from 'Modern C++ Design', I am implementing a persistence library with various
I have a core data application which uses a navigation controller to drill down
I'm working with an intermediate join table in Core Data similar to the friends
I'm not sure why I get a java.lang.NoClassDefFoundError runtime error on the following line:

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.