Re: CoreData Migration Problems
Re: CoreData Migration Problems
- Subject: Re: CoreData Migration Problems
- From: Jerry Krinock <email@hidden>
- Date: Tue, 8 Feb 2011 21:00:50 -0800
On 2011 Feb 08, at 13:21, Gordon Apple wrote:
> PersistentStoreCoordinator is non-nil. Store returns nil.
Well, -addPersistentStoreWithType:configuration:URL:options:error: is only being passed trivial parameters, except for the URL. Log that URL and make sure that its parent directory exists. Try passing options:0. There's not very much you can screw up in there.
> Console just gives the infamous message: "Storage:persistentStoreCoordinator The operation couldn’t be completed. (Cocoa error 1560.)"
Always log the -userInfo if you'd like more details from an NSError. There may be an underlying error (NSUnderlyingErrorKey).
_______________________________________________
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