<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKRecordValue-c.protocol",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(pl)CKRecordValue"
  },
  "title" : "CKRecordValue"
}
-->

# CKRecordValue

The protocol that provides strong type-checking for objects that the CloudKit framework stores on the server.

```
@protocol CKRecordValue <NSObject>
```

## Overview

CloudKit supports the following classes that adopt this protocol:

- <doc://com.apple.documentation/documentation/Foundation/NSString>
- <doc://com.apple.documentation/documentation/Foundation/NSNumber>
- <doc://com.apple.documentation/documentation/Foundation/NSArray>
- <doc://com.apple.documentation/documentation/Foundation/NSDate>
- <doc://com.apple.documentation/documentation/Foundation/NSData>
- [`CKRecord.Reference`](/documentation/CloudKit/CKRecord/Reference)
- [`CKAsset`](/documentation/CloudKit/CKAsset)
- <doc://com.apple.documentation/documentation/CoreLocation/CLLocation>

Don’t adopt this protocol in your custom classes. CloudKit doesn’t support writing custom data types to the server. Attempting to do so results in an error.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)