<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macOS: 14.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/RenderingProcess/makeLibXPCConnection()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "s:16BrowserEngineKit16RenderingProcessV20makeLibXPCConnectionSo13OS_xpc_object_pyKF"
  },
  "title" : "makeLibXPCConnection()"
}
-->

# makeLibXPCConnection()

Creates a new XPC connection to the extension process.

```
func makeLibXPCConnection() throws -> xpc_connection_t
```

## Return Value

An object that represents the new XPC connection.

## Discussion

When you create an <doc://com.apple.documentation/documentation/XPC/xpc_connection_t> in your browser app using this method, the system calls your extension’s [`handle(xpcConnection:)`](/documentation/BrowserEngineKit/RenderingExtension/handle(xpcConnection:)) method to supply the remote end of the connection to your extension process.

---

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)