How do you make a Swift class available in an XPC service?
问题 I'm attempting to rebuild Apple's XPC "lowerCase" sample code from Objective-C to Swift. I understand XPC will, but I'm relatively new to Swift and Objective-C interoperability. When I use their exact sample code, which passes a String from the app to the target and back, it works. But when I try and replace that with my own custom class, Person , I get the error: NSXPCConnection: ... connection on anonymousListener or serviceListener from pid 4133: Exception caught during decoding of