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