XPC Connection error

Hi I am trying to implement XPC between my helper app and my network extension. It is giving me this error when I try to get the remoteObjectProxyWithErrorHandler

Error Domain=NSCocoaErrorDomain Code=4097 "connection to service on pid 0 named 9A48B11J6J.com.myapp.app.Extension" UserInfo={NSDebugDescription=connection to service on pid 0 named 9A48B11J6J.com.myapp.app.Extension}

Why could this be happening?

Answered by santalvarez in 682786022

Turns out I was setting the exportedInterface instead of the remoteObjectInterface on the NSXPCConnection.

Accepted Answer

Turns out I was setting the exportedInterface instead of the remoteObjectInterface on the NSXPCConnection.

XPC Connection error
 
 
Q