I am trying to sync the data of a core data app between two devices via iCloud. It basically seems to work, but it mostly fails. Data does not show up, or shows up randomly / partially. Sync takes forever (sometimes: hours).
Of course I tried all obvious remedies such as deleting the apps and data from the devices etc.
I get the following messages (relevant excerpt):
[_PFUbiquityRecordsImporter operation:failedWithError:](839):
CoreData: Ubiquity: Import operation encountered an error:
Error Domain=NSCocoaErrorDomain
Code=134060 "The operation couldn’t be completed.
(Cocoa error 134060.)" UserInfo=0x1106a6a0
{exception=Attempted to perform an operation without an open database}
while trying to import the log file at the URL:
<PFUbiquityTransactionLog: 0x11062710>
right after
CoreData: Ubiquity: Error importing transaction log:
<PFUbiquityTransactionLog: 0x110eb820>
and later
-[_PFUbiquityRecordsImporter operation:failedWithError:](824):
CoreData: Ubiquity: Import operation encountered a corrupt log file,
Error Domain=NSCocoaErrorDomain Code=134302
"The operation couldn’t be completed. (Cocoa error 134302.)"
UserInfo=0x12e0b0 {underlyingError=Error Domain=NSCocoaErrorDomain Code=19
"The operation couldn’t be completed. (Cocoa error 19.)" UserInfo=0x1af070
{NSUnderlyingException=error during SQL execution : constraint failed,
NSFilePath=/var/mobile/Applications/
59087988-334C-40DC-9F6A-C7DA22F7B790/Documents/database.sqlite,
NSSQLiteErrorDomain=19}, reason=Error encountered while importing
transaction log at URL: <PFUbiquityTransactionLog: 0xe87b3f0>
Any clues about this "without an open database" error?
What to do about the "corrupt log file"?