From 170b9eb0ec09efc51ed5caa9c584f7ab100d9ce7 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 7 Jun 2025 12:12:36 +0200 Subject: idevicesetlocation: Add note about non-compatibility with iOS 17+ --- tools/idevicesetlocation.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/idevicesetlocation.c b/tools/idevicesetlocation.c index d7dbd28..dca8830 100644 --- a/tools/idevicesetlocation.c +++ b/tools/idevicesetlocation.c @@ -149,9 +149,15 @@ int main(int argc, char **argv) lockdownd_service_descriptor_t svc = NULL; lerr = lockdownd_start_service(lockdown, DT_SIMULATELOCATION_SERVICE, &svc); if (lerr != LOCKDOWN_E_SUCCESS) { + unsigned int device_version = idevice_get_device_version(device); lockdownd_client_free(lockdown); idevice_free(device); - printf("ERROR: Could not start the simulatelocation service: %s\nMake sure a developer disk image is mounted!\n", lockdownd_strerror(lerr)); + printf("ERROR: Could not start the simulatelocation service: %s\n", lockdownd_strerror(lerr)); + if (device_version >= IDEVICE_DEVICE_VERSION(17,0,0)) { + printf("Note: This tool is currently not supported on iOS 17+\n"); + } else { + printf("Make sure a developer disk image is mounted!\n"); + } return 1; } lockdownd_client_free(lockdown); -- cgit v1.1-32-gdbae