From 65df561ea10883866b7074441844e52b18d239d7 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Sat, 5 Apr 2025 11:42:53 -0600 Subject: [PATCH] Use correct xpc service name for location simulation C example --- ffi/examples/location_simulation.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ffi/examples/location_simulation.c b/ffi/examples/location_simulation.c index 43373d9..7532073 100644 --- a/ffi/examples/location_simulation.c +++ b/ffi/examples/location_simulation.c @@ -95,8 +95,9 @@ int main(int argc, char **argv) { // Get debug proxy service XPCServiceHandle *dvt_service = NULL; - err = xpc_device_get_service(xpc_device, "com.apple.instruments.dtservicehub", - &dvt_service); + err = xpc_device_get_service( + xpc_device, "com.apple.instruments.server.services.LocationSimulation", + &dvt_service); if (err != IdeviceSuccess) { fprintf(stderr, "Failed to get DVT service: %d\n", err); xpc_device_free(xpc_device);