0

両方のデバイスで同じUIManagedDocumentものを開く必要があり、保存します (次のコードを使用):

[self.documentDatabase.managedObjectContext performBlockAndWait:^{
    STNoteLabelCell *cell = (STNoteLabelCell *)[self.noteTableView cellForRowAtIndexPath:indexPath];

    [cell setNote:newNote animated:YES];
}];

UIManagedDocuments documentState がに変更されたと言われ、次のUIDocumentStateSavingErrorエラーが発生します。

CoreData: error: (1) I/O error for database at /var/mobile/Applications/some-long-id/Documents/Read.dox/StoreContent.nosync/persistentStore.  SQLite error code:1, 'cannot rollback - no transaction is active'
2013-05-14 16:30:09.062 myApp[11711:4d23] -[_PFUbiquityRecordImportOperation main](312): CoreData: Ubiquity:  Threw trying to get the knowledge vector from the store: <NSSQLCore: 0x1e9e2680> (URL: file://localhost/var/mobile/Applications/some-long-id/Documents/Read.dox/StoreContent.nosync/persistentStore)

このエラーが発生する理由を知っている人はいますか?

4

1 に答える 1