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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:29:53+00:00 2026-06-06T00:29:53+00:00

I’m updating an App which uses CoreData. On the full version I made it

  • 0

I’m updating an App which uses CoreData. On the full version I made it so the user could save his/her own data on the database (the App populates a pre-filled database).

The App was written on Xcode 4.2 and with a deployment target of iOS 4.1, so before ARC and Storyboards.

Now I want to update it a little bit, set the deployment target to 5.1 and adapt the code to the latest Xcode, so implementing Storyboards and ARC because I’m now used to it and I find it more intuitive to mantain this code.
So I started a new project from scratch, I build the storyboard and I dragged most of the stuff from the 1.0 version. Additionally I’ve checked that the “Compile Sources” and “Copy Bundle Resources” on the Build Phases tab is ok and includes everything I’ve dragged.

However I’m experiencing a problem with the database. When I try to run the App it crashes telling me that:

'Cannot create an NSPersistentStoreCoordinator with a nil model'

So I’m not sure what I’m doing wrong here. I did not want to change the CoreData model, because everything remains the same, I did not add or remove any entity or attribute. So I though it would be enough to dragg the old modeld to the new project.

Any suggestion here? I could easlity write the whole codeData stuff from scratch because it’s not really very complex, but I believe that the user who bougth the full version and have custom data saved, would be very upset.

Any suggestion will be REALLY welcome. 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-06T00:29:55+00:00Added an answer on June 6, 2026 at 12:29 am

    You need to check your AppDelegate method managedObjectModel. Make sure it retrieves the model (check with NSLog statements). Most likely it has to do with some naming convention:

    NSString *modelPath = [[NSBundle mainBundle] 
        pathForResource:@"Model" ofType:@"momd"];
    NSURL *modelURL = [NSURL fileURLWithPath:modelPath];
    

    Check specifically for your modelPath.

    Also, what could have happened is that when you imported the model, you did not really import all the files. The model is actually a directory called YourModel.xcdatamodeld where the final d presumably stands for “directory”. In the Finder you can actually right-click and choose Show Package Contents to make sure the necessary files are there (even better to use the command line). Inside there should be a file called YourModel.xcdatamodel (without the d). In side that there should be at least a file called content (sometimes also layout). It is a simple XML file.

    Make sure you imported all these into your project!

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I need to clean up various Word 'smart' characters in user input, including but
I have a text area in my form which accepts all possible characters from

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.