ckmodifyrecordsoperation

Why is CKModifyRecordsOperation to batch delete records in CloudKit not deleting records?

若如初见. 提交于 2020-05-15 09:25:35
问题 I have code to batch delete records from the private database in CloudKit, but it's not working. (I also noticed that the records I saved are not remaining.) I am using an actual iPhone 8 with an actual Apple ID I personally use, not a developer account. I get the same results with an iPhone 8 Simulator. I don't have this problem when I log in to iCloud with the same Apple ID as my developer account using iPhone 8 Simulator. After answers to this post have not given me a solution, I think the

CKModifyRecordsOperation modifyRecordsCompletionBlock not being called

▼魔方 西西 提交于 2019-12-10 13:45:33
问题 I'm using CKModifyRecordsOperation to save a set of records and if I have internet connection all works well and completion block is being called. But when I don't have connection the completion block is not being called and I don't get any information that my operations failed. I'm using the following code in completion block modifyOperations.modifyRecordsCompletionBlock = ^(NSArray *savedRecords, NSArray *deletedRecordIDs, NSError *error) { if(error){ NSLog(@"Error: %@", error