Re: Core Data Manual Migration
Re: Core Data Manual Migration
- Subject: Re: Core Data Manual Migration
- From: Yvan BARTHÉLEMY <email@hidden>
- Date: Mon, 14 Sep 2009 10:49:41 +0200
After further research I determined that this problem occured because
I didn't set the source type and destination type. I will fill a bug
report about the message not containing enough information (by the
way, I'm running 10.5.6 as this is my target platform, this might have
been solved since that).
However, the reference for 'NSMigrationManager' indicated that
possible values for "type:" are specified
'NSPersistentStoreCoordinator' Reference. Based on that I assumed (as
it was not indicated), that the accepted values would be the same as
in "addPersistentStoreWithType:" which nil is a valid value (though
not documented as valid).
I'm wondering if I should also file a documentation bug about the fact
that nil is not valid in this context or never valid (this works, but
I should not rely on this behavior). Or if this should be supported,
and then I should file a behavior bug.
Thanks,
Yvan
2009/9/11 Ben Trumbull <email@hidden>:
>> The process fails here and the log then contains the following:
>> An error occured while manually migrating document: Error
>> Domain=NSCocoaErrorDomain Code=134110 UserInfo=0xf336960 "An error
>> occured during persistent store migration."
>> [6871:813] Error: {
>> reason = "Can't add source store";
>> }
>
> There should be more in the userInfo dictionary explaining what's going on.
> If you can reproduce it in a new test project with your models & mapping
> models, then please file a bug with the project source zipped up at
> bugreport.apple.com and we'll look at it.
>
> - Ben
>
>
_______________________________________________
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