Problem creating or opening a Core Data database
Problem creating or opening a Core Data database
- Subject: Problem creating or opening a Core Data database
- From: Rick Aurbach <email@hidden>
- Date: Fri, 02 Nov 2012 12:46:07 -0400
- Acceptlanguage: en-US
- Thread-topic: Problem creating or opening a Core Data database
This question relates to an iOS project, iOS 5 or later, developed on 10.8.2 using Xcode 4.5.1, testing with the iOS Simulator (5.0, 5.1, or 6.0).
I have a new project which uses a reasonably complex Core Data data model. There are 10 entities with multiple relationships between them, and a couple of attributes in one entity are transformable.
Using this data model, there is a significant problem creating or opening the database. Specifically, after creating my UIManagedDocument instance, I call either openWithCompletionHandler: or saveToURL:forSaveOperation:completionHandler.
The problem is that NEITHER of them invoke their completion handlers. (I've waited more than 60 seconds…) The calls return but the completion handlers never fire. And the document status remains "closed".
Although I have examined things carefully, I suspect that there is a problem in the model which is the ultimate cause of my problem.
While I pursue the laborious task of disassembling my data model into little pieces and gradually adding things back until it breaks, I was wondering whether
>> anyone has seen this sort of thing before,
>> anyone knows of any tools or techniques which could be used to examine the data model and locate (and fix!) the error which is leading to this problem.
Cheers,
Rick Aurbach
President and Chief Engineer
_______________________________________________
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