How to keep updating cloud kit record in swift?
问题 My app needs to update users current location to cloud server So how to update users current location to cloud server? I tried to use saveRecord but it doesn't work and error occurred error:Optional(<CKError 0x17005eea0: "Server Record Changed" (14/2037); "Error saving record <CKRecordID: 0x1458bb9c0; FASVSE10761FDM:(_defaultZone:__defaultOwner__)> to server: Protection data didn't match">) Thanks :) 回答1: You first have to fetch the record, then change it and save it back. If you get the same