<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/xpc_object_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "c:@T@xpc_object_t"
  },
  "title" : "xpc_object_t"
}
-->

# xpc_object_t

A type that can describe all XPC objects, including dictionaries, arrays, strings, and numbers.

```
typealias xpc_object_t = any OS_xpc_object
```

## Discussion

XPC objects are created with a retain count of 1, and therefore it is the caller’s responsibility to call [`xpc_release`](/documentation/XPC/xpc_release) on them when they are no longer needed.

---

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)