我正在尝试通过iCloud在两台设备之间同步核心数据应用的数据。它基本上似乎工作,但它大多失败。数据不会显示,也不会随机/部分显示。同步需要永远(有时:小时)。
当然,我尝试了所有明显的补救措施,例如从设备中删除应用和数据等。
我收到以下消息(相关摘录):
[_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>
之后
CoreData: Ubiquity: Error importing transaction log:
<PFUbiquityTransactionLog: 0x110eb820>
以后
-[_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>
关于此“没有开放数据库”错误的任何线索?
如何处理“损坏的日志文件”?