Missing Source managed object model
Missing Source managed object model
- Subject: Missing Source managed object model
- From: Brent Smith <email@hidden>
- Date: Mon, 12 Jul 2010 14:47:41 -0700
Hi everybody,
I'm trying to run core data migration on the store of my app but it
seems to be unable to find the source object model no matter what. I
tried different approaches, taking some hints by some results I found
on google, but without success. This is what I tried:
Note, this is a non document based applicaiton
- First I tried following the guide on Core Data Versioning and
Migration to do it automatically. I created a new version of the model
and set it as the current version. I created a mapping model and
called addPersistentStoreWithType:configuration:URL:options:error:
with the NSMigratePersistentStoresAutomaticallyOption option. The
method returned this error: "missing source managed object model". I
tried to point directly to the momd directory instead of using
mergedModelFromBundles:. I tried to compile the two models as top
level resources (flagging them in XCode and even moving them outside
the .xcdatamodeld directory). No way. Obviously I clean all targets
each time.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden