Skip to content
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

IWDP does not detect webviews anymore on iOS 11.3 Simulator (Xcode 9.3-beta3) #250

Closed
mykola-mokhnach opened this issue Mar 6, 2018 · 15 comments

Comments

@mykola-mokhnach
Copy link

Mac OS 10.13.3, Xcode 9.3-beta3

  1. Install IWDP with brew
  2. Start iPhoneX 11.3 Simulator and open Safari in it
  3. Start ios_webkit_debug_proxy in terminal

Actual result:
No devices are shown in the list

Expected device:
The simulator should be shown in the list.
On the same system with Xcode 9.2 the output is

Listing devices on :9221
Connected :9222 to SIMULATOR (SIMULATOR)

It might be that Apple has deprecated debugging via TCP port in the recent Xcode SDK and it is only available via Unix socket (probably, because this is the only thing I can se in lsof output of launchd_sim process so far: /private/tmp/com.apple.launchd.r4UKA9gcsI/com.apple.webinspectord_sim.socket

@artygus
Copy link
Collaborator

artygus commented Mar 6, 2018

hi @mykola-mokhnach thanks for the report, I'll take a look. the bad pard is I need to update OS to install new Xcode, it would take some time

@benzhe
Copy link

benzhe commented Apr 2, 2018

xcode 9.3 is released, experiencing the same issue.

@skansar
Copy link

skansar commented Apr 2, 2018

Upgraded to IOS on the device 11.03 and xocde 9.2 and facing below issue.

Unable to connect to iPhone (00000000000000blah)
Please verify that Settings > Safari > Advanced > Web Inspector = ON

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

tried to reinstall libimobiledevice does not seem to work

@artygus
Copy link
Collaborator

artygus commented Apr 2, 2018

hi @skansar the issue is not related to this thread please open another one, what does ios_webkit_debug_proxy -d show, any output? do you see webviews in Safari browser under Developer tab?

@artygus
Copy link
Collaborator

artygus commented Apr 16, 2018

I confirm the issue is there. Looks like since XCode 9.3.3 there's a unix socket connection for each webinsepctord of simulator. The question is how to detect unix socket locations. One way is lsof (somewhat like appium/appium-ios-simulator#145), but I hope there's a better a way

@kdthomas2121
Copy link

Has there been any progress made on this?

@artygus
Copy link
Collaborator

artygus commented May 2, 2018

all the updates will be posted in this thread, also everybody is welcome to contribute

@kdthomas2121
Copy link

I did manage to get it working once, but haven't been able to since. One thing to note is that I can't see the app in Safari Inspector, is this an indication that it's not an issue with IWDP? If not where is the issue?

@artygus
Copy link
Collaborator

artygus commented May 4, 2018

Simulators from Xcode 9.3-beta3 and up are only inspectable in safari technology preview for now AFAIK. Just to clarify the issue is only about simulators and Xcode 9.3-beta3 (and up)

@itoys
Copy link

itoys commented May 8, 2018

The same issue:
Xcode 9.3
ios_webkit_debug_proxy 1.8
Built with libimobiledevice v1.2.0, libplist v2.0.0

@alastaircoote
Copy link

I've had some success in finding the unix socket via the method described in appium/appium-ios-simulator#145, then piping that socket over TCP to port 27753, which is where the proxy expects to find a connection. Once I've done that the proxy finds the simulator fine and I can open the debugger. (I'm not able to send commands over the console, but I just tested with iOS 10 and it doesn't work there either, so there must be some other issue going on)

I don't have any good suggestions on avoiding lsof, though.

@AL-locator
Copy link

Hi, is there any progress?
Still having the issue since XCode 9.3

@xudafeng
Copy link

alibaba/macaca#872

@zhenshub
Copy link

zhenshub commented Jun 4, 2019

And iOS 12.2 simulator is not support, if the lib cant support I think you should describe in README.md to make all user know "iOS 10+ s simulator not support "

@artygus
Copy link
Collaborator

artygus commented Mar 5, 2020

there's an option to provide simulator socket to iwdp since 1.8.5

@artygus artygus closed this as completed Mar 5, 2020
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

No branches or pull requests

10 participants