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

# xpc_type_get_name(_:)

Returns a string that describes an XPC object type.

```
func xpc_type_get_name(_ type: xpc_type_t) -> UnsafePointer<CChar>
```

## Parameters

`type`

The type to describe.

## Return Value

A string describing the type of an object, like `"string"` or `"int64"`. This string should not be freed or modified.

---

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)