We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90971c2 commit 39b72f1Copy full SHA for 39b72f1
IceCream/Classes/DatabaseManagerProtocol.swift
@@ -62,7 +62,15 @@ extension DatabaseManager {
62
modifyOp.modifyRecordsCompletionBlock = { (_,_,_) in
63
print("Resume modify records success!")
64
}
65
- self.container.add(modifyOp)
+ // The Apple's example code in doc(https://developer.apple.com/documentation/cloudkit/ckoperation/#1666033)
66
+ // tells we add operation in container. But however it crashes on iOS 15 beta versions.
67
+ // And the crash log tells us to "CKDatabaseOperations must be submitted to a CKDatabase".
68
+ // So I guess there must be something changed in the daemon. We temperorily add this availabilty check.
69
+ if #available(iOS 15, *) {
70
+ self.database.add(modifyOp)
71
+ } else {
72
+ self.container.add(modifyOp)
73
+ }
74
75
})
76
0 commit comments