<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/XPCDictionary/KeyValuePair",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "s:3XPC13XPCDictionaryV12KeyValuePaira"
  },
  "title" : "XPCDictionary.KeyValuePair"
}
-->

# XPCDictionary.KeyValuePair

A type that contains a dictionary’s key-value pair.

```
typealias KeyValuePair = (key: String, value: xpc_object_t)
```

## Discussion

[`XPCDictionary`](/documentation/XPC/XPCDictionary) exposes its values as instances of [`xpc_object_t`](/documentation/XPC/xpc_object_t) even if they were originally set with other types.

---

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)