Contents

makeXPCConnection()

Connect to the app extension process using the XPC types of the Foundation framework.

Declaration

func makeXPCConnection() throws -> NSXPCConnection

Return Value

The connection object your app uses to communicate with the app extension.

Discussion

Call this method to create a connection between your host app and an app extension using the types of the Foundation framework. If the app extension accepts the connection request, the returned connection object contains the proxy information you need to communicate with it. If the app extension refuses the request or doesn’t support this connection type, this method throws an error.

See Also

Connecting to the app extension