Hi,
I have a problem with XPC communication, maybe someone has a suggestion how to fix it.
So I have 2 applications that communicate over XPC (NSXPCConnection).
One app (sender) calls a method that ends up on the other side(receiver). The method has a completion block to get the response back. The problem is that the receiver crashes while executing the method, before sending back a response.
The invalidationHandler
is called, because the connection died.
My question is: is there a way to make XPC execute the response block, with error or something? If not, any suggestions how to handle this case, to "fake" call the response block for sender?
Thanks