<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macOS: 14.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BENetworkingProcess/makeLibXPCConnectionError:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(cs)BENetworkingProcess(im)makeLibXPCConnectionError:"
  },
  "title" : "makeLibXPCConnectionError:"
}
-->

# makeLibXPCConnectionError:

Creates a new XPC connection to the extension process.

```
- (xpc_connection_t) makeLibXPCConnectionError:(NSError **) error;
```

## Parameters

`error`

If an error occurs, upon return contains an <doc://com.apple.documentation/documentation/Foundation/NSError> object that describes the problem. If you don’t want information about errors that happen, pass in `NULL`.

## Return Value

An object that represents the new XPC connection, or `nil` if an error occurs.

## 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/NetworkingExtension/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)