I’m new to XPC and should not have a lot background in programming. Suppose there’s a service “com.apple.geod” or different providers on iOS units. Is it potential to put in writing a easy iOS utility that connects to them? If sure, how can it’s achieved? Can somebody present some easy code snippet?
I attempted numerous on-line sources to connect with it however I get Connection invalid
message, or the net useful resource is supposed for MacOS.
Beneath snippet is predicated on https://medium.com/@theninjaprawn/breaking-ios-xpc-cfe2c3083c87
#outline NAME "com.apple.geod"
....
xpc_connection_t conn = xpc_connection_create_mach_service(NAME, NULL, 0);
xpc_connection_set_event_handler(conn, ^(xpc_object_t object) {
NSLog(@"Occasion: %@", object);
});
xpc_connection_resume(conn);
References