From 75e9f0b39329d04754bb3cca61794e1426152b6a Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 12 Nov 2013 14:34:54 +0100 Subject: Handle error due to pending trust dialog for iOS 7+ devices --- src/ifuse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ifuse.c b/src/ifuse.c index 74559e4..a0f4a60 100644 --- a/src/ifuse.c +++ b/src/ifuse.c @@ -753,6 +753,11 @@ int main(int argc, char *argv[]) fprintf(stderr, "Please disable the password protection on your device and try again.\n"); fprintf(stderr, "The device does not allow pairing as long as a password has been set.\n"); fprintf(stderr, "You can enable it again after the connection succeeded.\n"); +#ifdef LOCKDOWN_E_PAIRING_DIALOG_PENDING + } else if (ret == LOCKDOWN_E_PAIRING_DIALOG_PENDING) { + fprintf(stderr, "Please dismiss the trust dialog on your device and try again.\n"); + fprintf(stderr, "The device does not allow pairing as long as the dialog has not been accepted.\n"); +#endif } else { fprintf(stderr, "Failed to connect to lockdownd service on the device.\n"); fprintf(stderr, "Try again. If it still fails try rebooting your device.\n"); -- cgit v1.1-32-gdbae