google / ios-webkit-debug-proxy

A DevTools proxy (Chrome Remote Debugging Protocol) for iOS devices (Safari Remote Web Inspector).
BSD 3-Clause "New" or "Revised" License
5.94k stars 465 forks source link

Iphone XS Max not detected by ios_webkit_debug_proxy "Unable to attach [...] inspector" #285

Closed Nafiros closed 5 years ago

Nafiros commented 6 years ago

When I start ios_webkit_debug_proxy with iphone linked by cable to the PC (windows 10) I get this error "No iPhone found, is it plugged in?: No error" "Unable to attach 00008020001D0D592E88002E inspector"

but the iphone is well connected to the PC and trust it.

Any ideas ?

thank

artygus commented 6 years ago

hi @Nafiros can you confirm you're using latest available version of the ios-webkit-debug-proxy?

Nafiros commented 6 years ago

Hi ! Sure i'm using the 1.8.2 it's working on iphone 7 on iOS 12 but it's not working on iphone XS Max on iOS 12.

artygus commented 6 years ago

I see, the problem seems to be related to https://github.com/libimobiledevice/libimobiledevice/issues/706

in the meantime, could you please try running

ios_webkit_debug_proxy -u 00008020-001d0d592e88002e
Nafiros commented 6 years ago

The same error pop again on the cmd with this command :/

artygus commented 6 years ago

do you have latest itunes installed?

Nafiros commented 6 years ago

Yes i installed it today

artygus commented 6 years ago

what if you supply udid in the upper case

ios_webkit_debug_proxy -u 00008020-001D0D592E88002E
artygus commented 6 years ago

I found the cause of the issue, it was exactly problem mentioned above, pushed changes to master, but now I'm experiencing strange behaviour, I'll delay release until I get to the bottom of it

artygus commented 5 years ago

should be fixed in 1.8.3, check out releases page

Nubzor commented 5 years ago

@artygus it seems I have a similar problem with iPhone Xs. I am on Ubuntu 18.10, using the original Apple's cable and 1.8.3 ios-webkit-debug-proxy.

$ idevice_id -l returns 00008020000368601108002E

but afterall there is an error

Listing devices on :9221 No iPhone found, is it plugged in?: Operation now in progress Unable to attach 00008020-000368601108002E inspector

Am I doing smth wrong?

artygus commented 5 years ago

hi @Nubzor can you confirm you're using latest version of libimobiledevice and usbmuxd (built from master)?

AngelOnFira commented 5 years ago

Hey @artygus, I'm getting the same problem as @Nubzor, same conditions (Ubuntu 18.04.2, iPhone XR, original apple cable). My versions of libimobiledevice and usbmuxd are as follows

$ ios_webkit_debug_proxy -V
ios_webkit_debug_proxy 1.8.3
Built with libimobiledevice v1.2.1, libplist v2.0.0

$ idevice_id -l   
00008020000A6CD62E81002E

$ sudo apt-get install usbmuxd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
usbmuxd is already the newest version (1.1.0-2ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

and the output

$ ios_webkit_debug_proxy
Listing devices on :9221
No iPhone found, is it plugged in?: Operation now in progress
Unable to attach 00008020-000A6CD62E81002E inspector
artygus commented 5 years ago

@AngelOnFira you also need to have libusbmuxd/usbmuxd built from master

Nubzor commented 5 years ago

@artygus Sorry for the late response, I am more than sure I haven't receive any activity notification under this issue.

Most likely, I had the newest version of libimobiledevice and usbmuxd back then. I'd have to repeat the steps nowadays to be sure, however, I gave up with this way of debugging.

For the sake of leaving the world in better shape than I found it, I'll check it and post an update here in a few days.

php4umagento commented 5 years ago

Same problem for me 18.04 with iphone running latest IOS

 ios_webkit_debug_proxy -f chrome-devtools://devtools/bundled/inspector.html -u 00008030-00092DEE0230802E
No device found, is it plugged in?
Unable to attach 00008030-00092DEE0230802E inspector

idevice_id -l 0000803000092DEE0230802E