Code Monkey home page Code Monkey logo

Comments (2)

Drewsmits avatar Drewsmits commented on July 28, 2024

Are you on 4.2 and 5.0? Could be that the model isn't being shared properly between apps, or something.

//as

On Sep 25, 2011, at 1:59 PM, Arik [email protected] wrote:

This is on my laptop, I don't know if I have the same problem at work but I get the following error when I try and run either test app:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Cannot create an NSPersistentStoreCoordinator with a nil model'

I traced it back to:

NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"PilotTestApp" withExtension:@"momd"];
__managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL];

modelURL is nil for some reason. I tried changing that code to the more accepted:

[NSManagedObjectModel mergedModelFromBundles:nil];

Which solved the nil problem but then it crashed because it couldn't find an entity named redObject.

Reply to this email directly or view it on GitHub:
#24

from pilot.

danieltiger avatar danieltiger commented on July 28, 2024

I'm on 5.0. I'm pretty sure they aren't being shared properly. Cause I can get one to work but not both.

from pilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.