As the documentation says, property list types are all allowed by default. You do need to set it for both sides of the interface (I just found this out with FileHandle). The ObjC side of the code is
NSXPCInterface *interface = [NSXPCInterface interfaceWithProtocol:@protocol(RedirectorControlProtocol)];
NSSet<Class> *baseClasses;
baseClasses = [interface classesForSelector:@selector(getApplicationBypass:) argumentIndex:0 ofReply:YES];
NSSet<Class> *newClasses = [baseClasses setByAddingObject:[MyClass class]];
[interface setClasses:newClasses forSelector:@selector(getApplicationBypass:) argumentIndex:0 ofReply:YES];
[interface setClasses:newClasses forSelector:@selector(addAppBypass:) argumentIndex:0 ofReply:NO];
_connection.remoteObjectInterface = interface;
Topic:
Programming Languages
SubTopic:
Swift
Tags: