<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/xpc_copy_description(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "c:@F@xpc_copy_description"
  },
  "title" : "xpc_copy_description(_:)"
}
-->

# xpc_copy_description(_:)

Copies a debug string that describes the object.

```
func xpc_copy_description(_ object: xpc_object_t) -> UnsafeMutablePointer<CChar>
```

## Parameters

`object`

The object which is to be examined.

## Return Value

A string describing object which contains information useful for debugging. This string should be disposed of with `free(3)` when done.

---

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)