diff options
author | 2025-06-07 12:12:36 +0200 | |
---|---|---|
committer | 2025-06-07 12:13:19 +0200 | |
commit | 170b9eb0ec09efc51ed5caa9c584f7ab100d9ce7 (patch) | |
tree | 02c62b992bbc82dee304af7890eb56c6415315cf /tools | |
parent | 0480584865f0ce32cc9172a2e6468a7e991b46f5 (diff) | |
download | libimobiledevice-170b9eb0ec09efc51ed5caa9c584f7ab100d9ce7.tar.gz libimobiledevice-170b9eb0ec09efc51ed5caa9c584f7ab100d9ce7.tar.bz2 |
idevicesetlocation: Add note about non-compatibility with iOS 17+
Diffstat (limited to 'tools')
-rw-r--r-- | tools/idevicesetlocation.c | 8 |
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) 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); |