summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/idevicesetlocation.c8
1 files changed, 7 insertions, 1 deletions
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)
149 lockdownd_service_descriptor_t svc = NULL; 149 lockdownd_service_descriptor_t svc = NULL;
150 lerr = lockdownd_start_service(lockdown, DT_SIMULATELOCATION_SERVICE, &svc); 150 lerr = lockdownd_start_service(lockdown, DT_SIMULATELOCATION_SERVICE, &svc);
151 if (lerr != LOCKDOWN_E_SUCCESS) { 151 if (lerr != LOCKDOWN_E_SUCCESS) {
152 unsigned int device_version = idevice_get_device_version(device);
152 lockdownd_client_free(lockdown); 153 lockdownd_client_free(lockdown);
153 idevice_free(device); 154 idevice_free(device);
154 printf("ERROR: Could not start the simulatelocation service: %s\nMake sure a developer disk image is mounted!\n", lockdownd_strerror(lerr)); 155 printf("ERROR: Could not start the simulatelocation service: %s\n", lockdownd_strerror(lerr));
156 if (device_version >= IDEVICE_DEVICE_VERSION(17,0,0)) {
157 printf("Note: This tool is currently not supported on iOS 17+\n");
158 } else {
159 printf("Make sure a developer disk image is mounted!\n");
160 }
155 return 1; 161 return 1;
156 } 162 }
157 lockdownd_client_free(lockdown); 163 lockdownd_client_free(lockdown);