trilemma-dev / SecureXPC

A simple and secure XPC framework for Swift
MIT License
75 stars 15 forks source link

Verify that `endpoint` works for `XPCServiceServer` #46

Closed jakaplan closed 2 years ago

jakaplan commented 2 years ago

For the anonymous and the Mach services server, the connection turned into an endpoint is the listener connection. XPC Services don't have an (exposed) listener connection, so the implementation right now uses the incoming connection passed to xpc_main which likely does not work. This issue is to verify whether or not this works.

jakaplan commented 2 years ago

Created a test XPC Service to test this out and can confirm it does not work. The call to xpc_endpoint_create(connection) results in a EXC_BAD_INSTRUCTION. This is unsurprising.