<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 16.0.0 - 17.0.0",
    "macOS: 13.0.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/xpc_session_set_target_queue(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "s:3XPC28xpc_session_set_target_queueyySo03OS_B7_object_p_So0g10_dispatch_F0CSgtF"
  },
  "title" : "xpc_session_set_target_queue(_:_:)"
}
-->

# xpc_session_set_target_queue(_:_:)

```
func xpc_session_set_target_queue(_ session: any OS_xpc_object, _ target_queue: dispatch_queue_t?)
```

---

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)