Closed appsforartists closed 7 years ago
Did you get this resolved? I am curious to see if this works with IOS 8.x
https://github.com/google/ios-webkit-debug-proxy/issues/59
Might fix your issue.
I'm still seeing nothing at http://localhost:9221.
Here's the new log:
/u/local (master) $ ios_webkit_debug_proxy --debug
ss.add_server_fd(3)
ss.add_fd(4)
ss.add_server_fd(5)
ss.remove_server_fd(5)
ss.recv fd=4 len=978
ss.add_server_fd(5)
Could not start com.apple.webinspector!: Undefined error: 0
ss.remove_server_fd(5)
Unable to attach 18b2a93bc4a24d50505e40f3190b98c28eec8f0c inspector
After running:
cd /usr/local
git checkout 7e209f0 Library/Formula/libimobiledevice.rb
brew unlink libimobiledevice
brew install libimobiledevice
Okay. I'll install iOS 8 on my device and start debugging.
On Mon, Sep 22, 2014 at 8:01 PM, Brenton Simpson notifications@github.com wrote:
I'm still seeing nothing at http://localhost:9221.
Here's the new log:
/u/local (master) $ ios_webkit_debug_proxy --debug ss.add_server_fd(3) ss.add_fd(4) ss.add_server_fd(5) ss.remove_server_fd(5) ss.recv fd=4 len=978 ss.add_server_fd(5) Could not start com.apple.webinspector!: Undefined error: 0 ss.remove_server_fd(5) Unable to attach 18b2a93bc4a24d50505e40f3190b98c28eec8f0c inspector
After running:
cd /usr/local git checkout 7e209f0 Library/Formula/libimobiledevice.rb brew unlink libimobiledevice brew install libimobiledevice
— Reply to this email directly or view it on GitHub https://github.com/google/ios-webkit-debug-proxy/issues/72#issuecomment-56461508 .
Any update wrightt? Does the proxy work on iOS 8 ?
Works for me now with ios_webkit_debug_proxy
version 1.4 and iOS version 8.0.2. Tested with Opera Mini on iPhone 5s and iPad Mini.
More info about my setup: ios-webkit-debug-proxy: stable 1.4 libplist: stable 1.11 (bottled), HEAD libimobiledevice: stable 1.1.6 (bottled), HEAD usbmuxd: stable 1.0.9 (bottled), HEAD
Can anyone else check and see if they can confirm this?
I have the same setup as you and have tested a successful connection on iPad Retina
When attempting to access Safari in the device, I occasionally get this message from the log:
Invalid message _rpc_applicationUpdated: <dict>
<key>WIRApplicationBundleIdentifierKey</key>
<string>com.apple.mobilesafari</string>
<key>WIRApplicationNameKey</key>
<string>Safari</string>
<key>WIRIsApplicationProxyKey</key>
<false/>
<key>WIRIsApplicationActiveKey</key>
<integer>0</integer>
<key>WIRApplicationIdentifierKey</key>
<string>PID:176</string>
</dict>
ss.remove_fd(13)
Disconnected :9222 from Test-iPad-Retina (48a39bc1438f54d35d11d48c7e4b38e44bcafe6e)
ss.remove_server_fd(5)
I also attempted to access the SafariLauncher app used for appium and I get this message from the log:
Invalid message _rpc_applicationUpdated: <dict>
<key>WIRApplicationBundleIdentifierKey</key>
<string>com.apple.WebKit.WebContent</string>
<key>WIRHostApplicationIdentifierKey</key>
<string>PID:176</string>
<key>WIRApplicationNameKey</key>
<string></string>
<key>WIRIsApplicationProxyKey</key>
<true/>
<key>WIRIsApplicationActiveKey</key>
<integer>0</integer>
<key>WIRApplicationIdentifierKey</key>
<string>PID:178</string>
</dict>
ss.remove_fd(23)
Disconnected :9222 from Test-iPad-Retina (48a39bc1438f54d35d11d48c7e4b38e44bcafe6e)
ss.remove_server_fd(5)
Otherwise, it recognizes the device just fine.
i see this error
Invalid message _rpc_applicationUpdated:
<string>PID:191</string>
<key>WIRIsApplicationProxyKey</key>
<true/>
<key>WIRApplicationNameKey</key>
<string></string>
<key>WIRApplicationBundleIdentifierKey</key>
<string>com.apple.WebKit.WebContent</string>
<key>WIRIsApplicationActiveKey</key>
<integer>0</integer>
<key>WIRHostApplicationIdentifierKey</key>
<string>PID:189</string>
In my observation the kind of messages Safari sends is totally different than on 7.1; in some cases it sends a kind of message that basically says "hey you selected this app id, but it doesn't actually have webviews so you might want to use this other one instead". I'm not sure if i-w-d-p has the logic to handle that kind of response yet.
Still not working for me.
$ brew upgrade ios-webkit-debug-proxy
==> Upgrading 1 outdated package, with result:
ios-webkit-debug-proxy 1.4
==> Upgrading ios-webkit-debug-proxy
==> Downloading https://github.com/google/ios-webkit-debug-proxy/archive/1.4.tar.gz
######################################################################## 100.0%
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/ios-webkit-debug-proxy/1.4
==> make install
🍺 /usr/local/Cellar/ios-webkit-debug-proxy/1.4: 16 files, 168K, built in 12 seconds
~/P/w/aero (master) $ ios_webkit_debug_proxy --debug
ss.add_server_fd(3)
Listing devices on :9221
ss.add_fd(4)
ss.add_server_fd(5)
ss.remove_server_fd(5)
ss.recv fd=4 len=978
ss.add_server_fd(5)
Could not connect to lockdownd. Exiting.: No such file or directory
ss.remove_server_fd(5)
Unable to attach 0bc06164408e5960ff4e976293db2b58e5c222cc inspector
ss.accept server=3 new_client=5
ss.add_fd(5)
ss.accept server=3 new_client=8
ss.add_fd(8)
ss.recv fd=5 len=585
ws.recv[585]:
47 45 54 20 2F 20 48 54 54 50 2F 31 2E 31 0D 0A GET / HTTP/1.1..
48 6F 73 74 3A 20 6C 6F 63 61 6C 68 6F 73 74 3A 39 32 32 Host: localhost:922
31 0D 0A 1..
43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 6B 65 65 70 2D 61 6C Connection: keep-al
69 76 65 0D 0A ive..
41 63 63 65 70 74 3A 20 74 65 78 74 2F 68 74 6D 6C 2C 61 Accept: text/html,a
70 70 6C 69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78 6D pplication/xhtml+xm
6C 2C 61 70 70 6C 69 63 61 74 69 6F 6E 2F 78 6D 6C 3B 71 l,application/xml;q
3D 30 2E 39 2C 69 6D 61 67 65 2F 77 65 62 70 2C 2A 2F 2A =0.9,image/webp,*/*
3B 71 3D 30 2E 38 0D 0A ;q=0.8..
55 73 65 72 2D 41 67 65 6E 74 3A 20 4D 6F 7A 69 6C 6C 61 User-Agent: Mozilla
2F 35 2E 30 20 28 4D 61 63 69 6E 74 6F 73 68 3B 20 49 6E /5.0 (Macintosh; In
74 65 6C 20 4D 61 63 20 4F 53 20 58 20 31 30 5F 39 5F 32 tel Mac OS X 10_9_2
29 20 41 70 70 6C 65 57 65 62 4B 69 74 2F 35 33 37 2E 33 ) AppleWebKit/537.3
36 20 28 4B 48 54 4D 4C 2C 20 6C 69 6B 65 20 47 65 63 6B 6 (KHTML, like Geck
6F 29 20 43 68 72 6F 6D 65 2F 33 37 2E 30 2E 32 30 36 32 o) Chrome/37.0.2062
2E 31 32 34 20 53 61 66 61 72 69 2F 35 33 37 2E 33 36 0D .124 Safari/537.36.
0A .
41 63 63 65 70 74 2D 45 6E 63 6F 64 69 6E 67 3A 20 67 7A Accept-Encoding: gz
69 70 2C 64 65 66 6C 61 74 65 2C 73 64 63 68 0D 0A ip,deflate,sdch..
41 63 63 65 70 74 2D 4C 61 6E 67 75 61 67 65 3A 20 65 6E Accept-Language: en
2D 55 53 2C 65 6E 3B 71 3D 30 2E 38 0D 0A -US,en;q=0.8..
43 6F 6F 6B 69 65 3A 20 75 3D 25 37 42 25 32 32 66 69 72 Cookie: u=%7B%22...
0D 0A ..
ss.remove_fd(5)
ss.accept server=3 new_client=5
ss.add_fd(5)
ss.recv fd=8 len=525
ws.recv[525]:
47 45 54 20 2F 66 61 76 69 63 6F 6E 2E 69 63 6F 20 48 54 GET /favicon.ico HT
54 50 2F 31 2E 31 0D 0A TP/1.1..
48 6F 73 74 3A 20 6C 6F 63 61 6C 68 6F 73 74 3A 39 32 32 Host: localhost:922
31 0D 0A 1..
43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 6B 65 65 70 2D 61 6C Connection: keep-al
69 76 65 0D 0A ive..
41 63 63 65 70 74 3A 20 2A 2F 2A 0D 0A Accept: */*..
55 73 65 72 2D 41 67 65 6E 74 3A 20 4D 6F 7A 69 6C 6C 61 User-Agent: Mozilla
2F 35 2E 30 20 28 4D 61 63 69 6E 74 6F 73 68 3B 20 49 6E /5.0 (Macintosh; In
74 65 6C 20 4D 61 63 20 4F 53 20 58 20 31 30 5F 39 5F 32 tel Mac OS X 10_9_2
29 20 41 70 70 6C 65 57 65 62 4B 69 74 2F 35 33 37 2E 33 ) AppleWebKit/537.3
36 20 28 4B 48 54 4D 4C 2C 20 6C 69 6B 65 20 47 65 63 6B 6 (KHTML, like Geck
6F 29 20 43 68 72 6F 6D 65 2F 33 37 2E 30 2E 32 30 36 32 o) Chrome/37.0.2062
2E 31 32 34 20 53 61 66 61 72 69 2F 35 33 37 2E 33 36 0D .124 Safari/537.36.
0A .
41 63 63 65 70 74 2D 45 6E 63 6F 64 69 6E 67 3A 20 67 7A Accept-Encoding: gz
69 70 2C 64 65 66 6C 61 74 65 2C 73 64 63 68 0D 0A ip,deflate,sdch..
41 63 63 65 70 74 2D 4C 61 6E 67 75 61 67 65 3A 20 65 6E Accept-Language: en
2D 55 53 2C 65 6E 3B 71 3D 30 2E 38 0D 0A -US,en;q=0.8..
43 6F 6F 6B 69 65 3A 20 75 3D 25 37 42 25 32 32 66 69 72 Cookie: u=%7B%22...
0D 0A ..
ss.remove_fd(8)
ss.recv fd=4 len=298
ss.recv fd=5 len=0
ss.remove_fd(5)
ss.recv fd=4 len=684
ss.add_server_fd(5)
Could not connect to lockdownd. Exiting.: No such file or directory
ss.remove_server_fd(5)
Unable to attach 0bc06164408e5960ff4e976293db2b58e5c222cc inspector
ss.accept server=3 new_client=5
ss.add_fd(5)
ss.accept server=3 new_client=8
ss.add_fd(8)
ss.recv fd=5 len=611
ws.recv[611]:
47 45 54 20 2F 20 48 54 54 50 2F 31 2E 31 0D 0A GET / HTTP/1.1..
48 6F 73 74 3A 20 6C 6F 63 61 6C 68 6F 73 74 3A 39 32 32 Host: localhost:922
31 0D 0A 1..
43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 6B 65 65 70 2D 61 6C Connection: keep-al
69 76 65 0D 0A ive..
43 61 63 68 65 2D 43 6F 6E 74 72 6F 6C 3A 20 6D 61 78 2D Cache-Control: max-
61 67 65 3D 30 0D 0A age=0..
41 63 63 65 70 74 3A 20 74 65 78 74 2F 68 74 6D 6C 2C 61 Accept: text/html,a
70 70 6C 69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78 6D pplication/xhtml+xm
6C 2C 61 70 70 6C 69 63 61 74 69 6F 6E 2F 78 6D 6C 3B 71 l,application/xml;q
3D 30 2E 39 2C 69 6D 61 67 65 2F 77 65 62 70 2C 2A 2F 2A =0.9,image/webp,*/*
3B 71 3D 30 2E 38 0D 0A ;q=0.8..
55 73 65 72 2D 41 67 65 6E 74 3A 20 4D 6F 7A 69 6C 6C 61 User-Agent: Mozilla
2F 35 2E 30 20 28 4D 61 63 69 6E 74 6F 73 68 3B 20 49 6E /5.0 (Macintosh; In
74 65 6C 20 4D 61 63 20 4F 53 20 58 20 31 30 5F 39 5F 32 tel Mac OS X 10_9_2
29 20 41 70 70 6C 65 57 65 62 4B 69 74 2F 35 33 37 2E 33 ) AppleWebKit/537.3
36 20 28 4B 48 54 4D 4C 2C 20 6C 69 6B 65 20 47 65 63 6B 6 (KHTML, like Geck
6F 29 20 43 68 72 6F 6D 65 2F 33 37 2E 30 2E 32 30 36 32 o) Chrome/37.0.2062
2E 31 32 34 20 53 61 66 61 72 69 2F 35 33 37 2E 33 36 0D .124 Safari/537.36.
0A .
41 63 63 65 70 74 2D 45 6E 63 6F 64 69 6E 67 3A 20 67 7A Accept-Encoding: gz
69 70 2C 64 65 66 6C 61 74 65 2C 73 64 63 68 0D 0A ip,deflate,sdch..
41 63 63 65 70 74 2D 4C 61 6E 67 75 61 67 65 3A 20 65 6E Accept-Language: en
2D 55 53 2C 65 6E 3B 71 3D 30 2E 38 0D 0A -US,en;q=0.8..
43 6F 6F 6B 69 65 3A 20 75 3D 25 37 42 25 32 32 66 69 72 Cookie: u=%7B%22...
0D 0A ..
ss.remove_fd(5)
ss.accept server=3 new_client=5
ss.add_fd(5)
ss.recv fd=8 len=611
ws.recv[611]:
47 45 54 20 2F 20 48 54 54 50 2F 31 2E 31 0D 0A GET / HTTP/1.1..
48 6F 73 74 3A 20 6C 6F 63 61 6C 68 6F 73 74 3A 39 32 32 Host: localhost:922
31 0D 0A 1..
43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 6B 65 65 70 2D 61 6C Connection: keep-al
69 76 65 0D 0A ive..
43 61 63 68 65 2D 43 6F 6E 74 72 6F 6C 3A 20 6D 61 78 2D Cache-Control: max-
61 67 65 3D 30 0D 0A age=0..
41 63 63 65 70 74 3A 20 74 65 78 74 2F 68 74 6D 6C 2C 61 Accept: text/html,a
70 70 6C 69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78 6D pplication/xhtml+xm
6C 2C 61 70 70 6C 69 63 61 74 69 6F 6E 2F 78 6D 6C 3B 71 l,application/xml;q
3D 30 2E 39 2C 69 6D 61 67 65 2F 77 65 62 70 2C 2A 2F 2A =0.9,image/webp,*/*
3B 71 3D 30 2E 38 0D 0A ;q=0.8..
55 73 65 72 2D 41 67 65 6E 74 3A 20 4D 6F 7A 69 6C 6C 61 User-Agent: Mozilla
2F 35 2E 30 20 28 4D 61 63 69 6E 74 6F 73 68 3B 20 49 6E /5.0 (Macintosh; In
74 65 6C 20 4D 61 63 20 4F 53 20 58 20 31 30 5F 39 5F 32 tel Mac OS X 10_9_2
29 20 41 70 70 6C 65 57 65 62 4B 69 74 2F 35 33 37 2E 33 ) AppleWebKit/537.3
36 20 28 4B 48 54 4D 4C 2C 20 6C 69 6B 65 20 47 65 63 6B 6 (KHTML, like Geck
6F 29 20 43 68 72 6F 6D 65 2F 33 37 2E 30 2E 32 30 36 32 o) Chrome/37.0.2062
2E 31 32 34 20 53 61 66 61 72 69 2F 35 33 37 2E 33 36 0D .124 Safari/537.36.
0A .
41 63 63 65 70 74 2D 45 6E 63 6F 64 69 6E 67 3A 20 67 7A Accept-Encoding: gz
69 70 2C 64 65 66 6C 61 74 65 2C 73 64 63 68 0D 0A ip,deflate,sdch..
41 63 63 65 70 74 2D 4C 61 6E 67 75 61 67 65 3A 20 65 6E Accept-Language: en
2D 55 53 2C 65 6E 3B 71 3D 30 2E 38 0D 0A -US,en;q=0.8..
43 6F 6F 6B 69 65 3A 20 75 3D 25 37 42 25 32 32 66 69 72 Cookie: u=%7B%22...
0D 0A ..
ss.remove_fd(8)
ss.recv fd=5 len=0
ss.remove_fd(5)
ss.recv fd=4 len=298
^Css.remove_server_fd(3)
ss.remove_fd(4)
BTW, I can only find the brew formula for libimobiledevice 1.1.6.
I also attempted to access the SafariLauncher app used for appium and I get this message from the log:
Invalid message _rpc_applicationUpdated:
<string>com.apple.WebKit.WebContent</string>
<key>WIRHostApplicationIdentifierKey</key>
<string>PID:176</string>
<key>WIRApplicationNameKey</key>
<string></string>
<key>WIRIsApplicationProxyKey</key>
<true/>
<key>WIRIsApplicationActiveKey</key>
<integer>0</integer>
<key>WIRApplicationIdentifierKey</key>
<string>PID:178</string>
ss.remove_fd(23) Disconnected :27753 from iPhone5 White APH6 (6865f773f09277c6e8c6df46c7bb4273b994cd4d) ss.remove_fd(10)
blocking my work...
@paymand is it working for you on 8.1 devices?
@sebv: Works with my 8.0.2 iPhone 5s, I'll double check with a 8.1 device tomorrow.
@sebv: Tested with an iPad Air (iOS version 8.1) and it works for me. Here's my setup: ios-webkit-debug-proxy: stable 1.4 libplist: stable 1.11 (bottled), HEAD libimobiledevice: stable 1.1.6 (bottled), HEAD usbmuxd: stable 1.0.9, HEAD
i am having ios-webkit-debug-proxy 1.3, how to upgarade to 1.4, when i trie to upgarade using brew command it says Error: ios-webkit-debug-proxy-1.3 already installed
argh similar problem on linux with debug output from ios_webkit_debug_proxy:
Listing devices on :9221
Could not start com.apple.webinspector!: Success
Unable to attach 6a
The wierd thing here is the complaint of "Success". Other posters have had errors listed there
Exactly the same problem as @maizaAvaro and @ASYB happens on iPhone 6 (iOS 8.1.2) and iPad, on OS X 10.10.1
I think it depends on the version of Chrome it work with version 36 for me.
Any solution for this issue, I am getting same issue on IPhone 6 (IOS 8.1)
Invalid message _rpc_applicationUpdated:
<string>PID:892</string>
<key>WIRIsApplicationProxyKey</key>
<true/>
<key>WIRApplicationNameKey</key>
<string></string>
<key>WIRApplicationBundleIdentifierKey</key>
<string>com.apple.WebKit.WebContent</string>
<key>WIRIsApplicationActiveKey</key>
<integer>0</integer>
<key>WIRHostApplicationIdentifierKey</key>
<string>PID:890</string>
ss.remove_fd(6) Disconnected :27753 from
Also have this message Invalid message _rpc_applicationUpdated
For _Invalid message _rpcapplicationUpdated use this:
./bin/ios-webkit-debug-proxy-launcher.js -c <UDID>:27753 -d
which takes care of launching _ios_webkit_debugproxy. See:
https://github.com/appium/appium/blob/master/bin/ios-webkit-debug-proxy-launcher.js
Hi, sorry I haven't had time to fix this yet! I'm freeing up time soon and I have a refactor plan to help avoid these bugs; see: https://github.com/appium/appium/issues/4668#issuecomment-77769033
Hi All,
I was also facing this webkit crashing issue and trying its work around "./bin/ios-webkit-debug-proxy-launcher.js -c
first i did "cd /usr/local/bin" on terminal then "ios-webkit-debug-proxy-launcher.js -c ca666e295c7cd5a893e376989f3c4a3b24987534:27753 –d"
it says "command not found "
can someone please help me , do we need to separate install this js file or where I can find this on my mac
thanks
@NehaDua That is only in the appium directory, not in your system directory. [appium]/bin/ios-webkit-debug-proxy-launcher.js
@paymand Sorry this message is not related to thread, can you please let me know the configuration to test on Opera Mini on iPhone 5s and iPad Mini, as you mentioned you tested on this browser.
@ASYB: The settings were the ones I mentioned in https://github.com/google/ios-webkit-debug-proxy/issues/72#issuecomment-61071651 last time I checked.
what about the capabilities for browser, as we mentioned safari for safari browser. If I am not wrong you were talking about Opera Mini browser ??
You do not need any special cap for Opera afaik. It uses UIWebview for non-mini modes that Appium should automatically pick up and expose via driver.contexts
.
See https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/hybrid.md for more info.
iOS Web Kit debug Proxy connects with the iOS device and disconnects immediately. Once in 10 times plugging and unplugging and changing the port it connects. Is there any iOS Web Kit debug Proxy cache on device or mac to clean up?
Xcode7.2 OSx10.11 iOS Device 7.1 iPhone 5S
hi @appsforartists, did it work for you eventually?
No idea - I don't even work at that job anymore. 😝
haha k, I guess it should be fixed anyway
I just tried installing for the first time using
brew install ios-webkit-debug-proxy
. It looks like it worked fine, but I can't get either of my test devices (iPhone 5 on iOS 8 or iPad mini /w Retina on iOS 7.1.1) to connect. Here's a log:If I go to
localhost:9221
, I see this:Here's the install log:
My corporate laptop is a MacBook Pro /w Retina running 10.9.2.