Skip to content

The tool doesn't work with ios 11 #208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ViktorGal opened this issue Jun 11, 2017 · 33 comments · Fixed by #217
Closed

The tool doesn't work with ios 11 #208

ViktorGal opened this issue Jun 11, 2017 · 33 comments · Fixed by #217

Comments

@ViktorGal
Copy link

After

....bplist00..._
..WIRFinalMessageKeyO..
bplist00.....Z
_selector..rpc_reportIdentifier:Z
__argument...
..WIRConnectionIdentifierKey
_.#6977420-6980-418f- b735-51a3692d2806 .1<?\

message sent.
Device closes connection.

@ViktorGal
Copy link
Author

When connecting the device to El Capitan. Safari also cannot see the device.

@artygus
Copy link
Collaborator

artygus commented Jun 11, 2017

If safari can not see the device iwdp won't be able to see it either

@ViktorGal
Copy link
Author

Can not see on EL Capital. On Sierra it should work. I didn't upgrade my mini mac yet.

@artygus
Copy link
Collaborator

artygus commented Jun 12, 2017

I'm on El Captain and I'm able to see the devices. If you start simulator does safari pick it?

@ViktorGal
Copy link
Author

You are able to see ios11 devices? I'm talking about ios11. On Sierra the device with ios11 appear in develop tab of safari for a 1 second and disappear.

@ViktorGal
Copy link
Author

I don't know how to run ios11 simulator. Maybe I need Xcode 9.

@artygus
Copy link
Collaborator

artygus commented Jun 13, 2017

@ViktorGal oh I see now, didn't notice ios11 in issue's tittle, I didn't upgrade to Sierra just yet, will do later this week. I'll let you know if I have any progress

@ViktorGal
Copy link
Author

Thanks @artygus. Need to upgrade to High Sierra beta for ios 11.

@tobsch
Copy link

tobsch commented Jun 20, 2017

Newest chrome preview works with ios 11, even in sierra. The proxy does not though.

@artygus
Copy link
Collaborator

artygus commented Jun 20, 2017

@tobsch do you mean that default dev tools front-end doesn't work?

@tobsch
Copy link

tobsch commented Jun 20, 2017

yep! it only works with the newest safari preview

@artygus
Copy link
Collaborator

artygus commented Jun 20, 2017

Default dev tools url is super old, but even latest dev tools are quite useless because safari/chrome protocols are quite different now, I'd recommend using adapter. You can find some info in readme https://github.com/google/ios-webkit-debug-proxy#using-with-devtools

@artygus
Copy link
Collaborator

artygus commented Jun 20, 2017

On El Captain call to libimobiledevice method lockdownd_client_new_with_handshake fails with LOCKDOWN_E_MUX_ERROR, probably related to protocol changes. Found some info libimobiledevice/libimobiledevice#510

UPD: after applying patch to libimobiledevice, handshake happens, but device gets disconnected later

@artygus
Copy link
Collaborator

artygus commented Jun 28, 2017

Latest stable Safari on Sierra gives the same result, device appears and disappears in a moment. The tool also reports disconnect with applied patch to libimobiledevice I mentioned above .

@nadavva
Copy link

nadavva commented Jul 4, 2017

We tried to run compile the code over ios11-supporting-libimobiledevice (== the device is identified and libimobiledevice commands are working) and ios-webkit-debug-proxy still failing...

@AnuKadloor
Copy link

I am getting the below error while executing the below command on iOS 11 Beta device with XCode 8.3.3.
$ ios_webkit_debug_proxy -c :27753 -d

Error:
Could not connect to lockdownd. Exiting.: Undefined error: 0
Unable to attach inspector

Can any one please help in this regard.
Thanks !!

@AnuKadloor
Copy link

I was able to resolve the issue by cloning the libimobiledevice project from GitHub and then implementing the patch mentioned in below URL:-
https://gist.github.com/nikias/b351bf633d62703e0ff4f2fee9628401

@AnuKadloor
Copy link

@artygus
On executing ios-debug-webkit-proxy on MAC Siera terminal, my iphone 6 (iOS 11 beta 2) is listed when I go to localhost:9221 in my browser; however it does not display any pages under the 'Inspectable pages for iPhone:' section.
I suspect due to this, appium is unable to switch to webview context of my app.
Can you let me know if this is an issue or am I missing some configuration?

ios-debug-webkit-proxy version: 1.7.1
Built with libimobiledevice v1.2.1, libplist v1.12

@artygus
Copy link
Collaborator

artygus commented Jul 26, 2017

hi @AnuKadloor at this point utility doesn't support iOS 11. Even latest Safari on Sierra doesn't allow you to inspect pages of iOS 11 devices. However, on High Sierra I was able to inspect devices with iOS 11. I suspect there're certain changes in usbmuxd protocol, the issue needs further investigation.

@AnuKadloor
Copy link

Thanks for the quick reply @artygus
Any idea by when we can expect a fix for this?

PS: I'm able to inspect pages of iOS 11 devices on my Mac Sierra 10.12.6 with Safari 11.0

@artygus
Copy link
Collaborator

artygus commented Jul 26, 2017

oh cool, Safari 11 Beta was only available on High Sierra, look's stable works even on El Captain. I can't make any promises, any help in investigation would be greatly appreciated 🙂

UPD: I was able to install Safari Beta 3 on El Captain

@AnuKadloor
Copy link

👍
I can try and help 🙂
Hopefully we'll get a fix for this ASAP!
Will update here if I come across anything else.

@AnuKadloor
Copy link

Hey...any updates on this issue?

@artygus
Copy link
Collaborator

artygus commented Aug 5, 2017

@AnuKadloor yes, looks like ios 11 doesn't support partial plist's, I'm thinking about workaround atm

@fabianaapateanu
Copy link

Hei guys, any updates on this issue? Many thanks!

@artygus
Copy link
Collaborator

artygus commented Aug 7, 2017

@AnuKadloor @fabianaapateanu please check out the ios11_support branch. You still need to apply patch to libimobiledevice or device handshake would fail, see comment above for details

@AnuKadloor
Copy link

AnuKadloor commented Aug 8, 2017

Thanks for the fix @artygus.
It seems to be working :)

@mayureshshirodkar
Copy link

@artygus i installed the branch you created for the iOS 11 fix and it seems to be working fine.
By when can we expect the patch, on the main branch ?

@artygus artygus mentioned this issue Aug 9, 2017
@artygus
Copy link
Collaborator

artygus commented Aug 9, 2017

@mayureshshirodkar I've just merged the branch to master, I think I'll keep the issue open until libimobiledevice/libimobiledevice#510 is resolved

@fabianaapateanu
Copy link

@artygus I will test tomorrow, I just received a Macbook and iPhone on which I can install all the betas :) will come back with feedback. thanks!

@artygus
Copy link
Collaborator

artygus commented Aug 16, 2017

pairing patch made it's way into libimobiledevice's master libimobiledevice/libimobiledevice@5a85432

@vadym-kovryzhkin
Copy link

brew update
brew reinstall --HEAD libimobiledevice
brew reinstall -s ios-webkit-debug-proxy

resolved issue for me

@ghost
Copy link

ghost commented Dec 21, 2017

I agree with @Vadim-Kovrizhkin. I followed his steps, and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants