Xcode 抛出一个非常模棱两可的错误:
'firesOnRecordCreation' 的含糊使用
在进行 CKQuerySubscription 时。实际上,它在添加到该调用的每个选项上都这样做。那是编译器错误吗?解决方案?
let predicate = NSPredicate(value: true)
let subscriptionID = "notes-changed"
let noteSubscription = CKQuerySubscription(recordType: "Notes",
predicate: predicate,
subscriptionID: subscriptionID,
options: [.firesOnRecordCreation,
.firesOnRecordDeletion,
.firesOnRecordUpdate])
Run Code Online (Sandbox Code Playgroud)