XPC Resources
XPC is the preferred inter-process communication (IPC) mechanism on Apple platforms. XPC has three APIs:
The high-level
NSXPCConnection
API, for Objective-C and SwiftThe low-level Swift API, introduced with macOS 14
The low-level C API, which, while callable from all languages, works best with C-based languages
A great collection of links.