Re: Core Data completely unable to find the source object model for migration

2009-08-08 Thread Matteo Manferdini
> if you look at the entity > descriptions you'll see that the Event entity description in the calendar > store includes a versionHashModifier and the imported one does not. >  Specifying the same version hash modifier in your imported version of the > Event entity should fix that. Now it works! T

Re: Core Data completely unable to find the source object model for migration

2009-08-07 Thread Adam Swift
On Aug 7, 2009, at 8:39 AM, Matteo Manferdini wrote: This can happen as a side effect of the old template code that merges a model using all managed object models from the application resources as well as all frameworks linked into the application. Thank you Adam, this is exactly the case

Re: Core Data completely unable to find the source object model for migration

2009-08-07 Thread Matteo Manferdini
> This can happen as a side effect of the old template code that merges a > model using all managed object models from the application resources as well > as all frameworks linked into the application. Thank you Adam, this is exactly the case! The old template code (I inherited it from Tiger, sinc

Re: Core Data completely unable to find the source object model for migration

2009-08-06 Thread Adam Swift
On Aug 6, 2009, at 10:37 AM, Matteo Manferdini wrote: To further investigate the matter, I logged the contents of both the NSStoreModelVersionHashesKey dictionary from my store metadata and the dictionary returned by the entityVersionHashesByName: method of my source model. I did this both for

Re: Core Data completely unable to find the source object model for migration

2009-08-06 Thread mmalc Crawford
On Aug 6, 2009, at 10:37 AM, Matteo Manferdini wrote: What I discovered is that in the first case the hashes are the same for the model and the store, while in the second case the model has lost a lot of metadata in the versioning process. Along with my entities there are also other entities li

Re: Core Data completely unable to find the source object model for migration

2009-08-06 Thread Matteo Manferdini
To further investigate the matter, I logged the contents of both the NSStoreModelVersionHashesKey dictionary from my store metadata and the dictionary returned by the entityVersionHashesByName: method of my source model. I did this both for my working app without versioning and the not working one

Re: Core Data completely unable to find the source object model for migration

2009-08-06 Thread Matteo Manferdini
> Did you create a mapping model? > If not, did you specify the NSInferMappingModelAutomaticallyOption option? Yes, I did create one. But I think that the problem is not there, since not knowing the source model, Core Data cannot infer the correct mapping model. For the manual migration I'm sure o

Re: Core Data completely unable to find the source object model for migration

2009-08-05 Thread Daniel DeCovnick
I had this exact problem. I did exactly what he did, and to continue this, yes, I did create a mapping model. Never got it to work, but I had a user base of 1 and a database of about 10 objects at the time, so I just abandoned attempting migration entirely and recreated the DB with the new

Re: Core Data completely unable to find the source object model for migration

2009-08-05 Thread mmalc Crawford
On Aug 4, 2009, at 11:20 PM, Matteo Manferdini wrote: I created a mapping model and called addPersistentStoreWithType:configuration:URL:options:error: with the NSMigratePersistentStoresAutomaticallyOption option. Did you create a mapping model? If not, did you specify the NSInferMappingModelA

Re: Core Data completely unable to find the source object model for migration

2009-08-04 Thread mmalc Crawford
On Aug 4, 2009, at 11:20 PM, Matteo Manferdini wrote: 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. What happens if you don't try to perform migration and instead simply open the existing store with the

Core Data completely unable to find the source object model for migration

2009-08-04 Thread Matteo Manferdini
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: - First I tried followi