---
title: "xpc_session_send_message_with_reply_sync(_:_:_:)"
framework: xpc
role: symbol
role_heading: Function
path: "xpc/xpc_session_send_message_with_reply_sync(_:_:_:)"
---

# xpc_session_send_message_with_reply_sync(_:_:_:)

## Declaration

```swift
func xpc_session_send_message_with_reply_sync(_ session: any OS_xpc_object, _ message: xpc_object_t, _ error_out: AutoreleasingUnsafeMutablePointer<xpc_rich_error_t?>?) -> xpc_object_t?
```

## See Also

### Sending messages

- [xpc_rich_error_t](xpc/xpc_rich_error_t.md)
- [xpc_rich_error_can_retry(_:)](xpc/xpc_rich_error_can_retry(_:).md)
- [xpc_rich_error_copy_description(_:)](xpc/xpc_rich_error_copy_description(_:).md)
- [xpc_session_send_message(_:_:)](xpc/xpc_session_send_message(_:_:).md)
- [xpc_session_send_message_with_reply_async(_:_:_:)](xpc/xpc_session_send_message_with_reply_async(_:_:_:).md)
- [xpc_session_reply_handler_t](xpc/xpc_session_reply_handler_t-2hf7c.md)
