• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreData Migration Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: CoreData Migration Problems (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: NSDocument without Save
  • Next by Date: Re: NSDocument without Save
  • Previous by thread: Re: CoreData Migration Problems
  • Next by thread: Initializing NSError **, again Re: CoreData Migration Problems
  • Index(es):
    • Date
    • Thread