私はuserRecordIDを取得できますが、そのIDに関連付けられたレコードを取得しようとするとエラーが発生します。助言がありますか?以下のコードとエラー:CloudKitでユーザーレコードを取得するにはどうすればよいですか?
myContainer.fetchUserRecordID { (thisID, thisError) in
if let userError = thisError {
print("DEBUG: error getting user id; \(userError)")
} else {
if let userID = thisID {
self.publicDatabase.fetch(withRecordID: userID, completionHandler: { (fetchedUser, fetchedError) in
if let thisError = fetchedError {
print("DEBUG: error getting user record; \(thisError)")
}
コード、またはiOS 10(ベータ版ソフトウェアを試すために私のせいで
DEBUG: error getting user record; <CKError 0x174045010: "Internal Error" (1/5001); "Couldn't get a PCS object to unwrap encrypted data for field encryptedPublicSharingKey: (null)">
エラー、スウィフト3 & Xcodeのベータ8.0ベータ2(8S162m)
publicDatabaseでこのエラーが発生しましたが、私はpublicDatabaseから取得する必要があります。 – CommaToast