简体   繁体   中英

Core Data sync with iCloud crashing randomly

My application crashes randomly when attempting to sync to iCloud. Here is my crash log:

-[_PFUbiquityRecordsImporter operation:failedWithError:](1006): CoreData: Ubiquity:  Import operation encountered an error: Error Domain=NSCocoaErrorDomain Code=134060 "The operation couldn’t be completed. (Cocoa error 134060.)" UserInfo=0x175c6310 {exception=<PFUbiquityPeerRangeCache: 0x1762f330>
localPeerID: ZFP4XFRG6X~com~gordonmacleod~ProjectName storeName: mobile~60C52EFE-9874-4437-83B2-30C8956E5131

 Unable to resolve global object IDs: (
"<PFUbiquityGlobalObjectID: 0x188ccac0> (ZFP4XFRG6X~com~gordonmacleod~ ProjectName:Term:p1099:mobile~60C52EFE-9874-4437-83B2-30C8956E5131)",
"<PFUbiquityGlobalObjectID: 0x18a51d50> (ZFP4XFRG6X~com~gordonmacleod~ ProjectName:List:p1026:mobile~60C52EFE-9874-4437-83B2-30C8956E5131)"
 )

Any ideas where I am going wrong?

iCloud Core Data is broken.

You're better off serializing your data to JSON and using a Document-based approach .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM