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.
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.
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.