XPC is the preferred inter-process communication (IPC) mechanism on Apple platforms. XPC has two APIs:
-
The high-level
NSXPCConnectionAPI, for Objective-C and Swift -
The low-level C API, which, while callable from all languages, works best with C-based languages
General:
-
DevForums tag: XPC
-
XPC has extensive man pages — For the C API, start with the
xpcman page; this is the original source for the XPC C API documentation and still contains tidbits that you can’t find elsewhere. Also read thexpcservice.plistman page, which documents the property list format used by XPC services. -
Daemons and Services Programming Guide archived documentation
-
Technote 2083 Daemons and Agents — It hasn’t been updated in… well… decades, but it’s still remarkably relevant.
-
TN3113 Testing and Debugging XPC Code With an Anonymous Listener
Related tags include:
-
Inter-process communication, for other IPC mechanisms
-
Service Management, for installing and uninstalling Service Management login items,
launchdagents, andlaunchddaemons
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"