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 466 forks source link

Not working with iOS 8.0 or 7.1.1 from Mac 10.9.2 #72

Closed appsforartists closed 7 years ago

appsforartists commented 10 years ago

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:

ss.add_server_fd(3)
ss.add_fd(4)
ss.add_server_fd(5)
ss.remove_server_fd(5)
ss.recv fd=4 len=980
ss.add_server_fd(5)
Invalid idevice_connection struct?: Undefined error: 0
Unable to get connection file descriptor.: Undefined error: 0
ss.remove_server_fd(5)
Unable to attach 0bc06164408e5960ff4e976293db2b58e5c222cc inspector

If I go to localhost:9221, I see this:

<html><head><title>iOS Devices</title></head><body>iOS Devices:<p><ol>
</ol></body></html>

Here's the install log:

~/P/ios-webkit-debug-proxy (master) $   brew install ios-webkit-debug-proxy
==> Installing dependencies for ios-webkit-debug-proxy: autoconf, automake, libxml2, libplist, libusb, usbmuxd, libtasn1, openssl, libimobiledevice
==> Installing ios-webkit-debug-proxy dependency: autoconf
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/autoconf-2.69.mavericks.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring autoconf-2.69.mavericks.bottle.1.tar.gz
🍺  /usr/local/Cellar/autoconf/2.69: 69 files, 2.0M
==> Installing ios-webkit-debug-proxy dependency: automake
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/automake-1.14.1.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring automake-1.14.1.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/automake/1.14.1: 127 files, 2.5M
==> Installing ios-webkit-debug-proxy dependency: libxml2
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libxml2-2.9.1.mavericks.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring libxml2-2.9.1.mavericks.bottle.1.tar.gz
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libxml2/lib
    CPPFLAGS: -I/usr/local/opt/libxml2/include

==> Summary
🍺  /usr/local/Cellar/libxml2/2.9.1: 274 files, 11M
==> Installing ios-webkit-debug-proxy dependency: libplist
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libplist-1.11.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libplist-1.11.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/libplist/1.11: 26 files, 404K
==> Installing ios-webkit-debug-proxy dependency: libusb
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libusb-1.0.18.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libusb-1.0.18.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/libusb/1.0.18: 11 files, 332K
==> Installing ios-webkit-debug-proxy dependency: usbmuxd
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/usbmuxd-1.0.9.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring usbmuxd-1.0.9.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/usbmuxd/1.0.9: 9 files, 124K
==> Installing ios-webkit-debug-proxy dependency: libtasn1
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libtasn1-3.6.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtasn1-3.6.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/libtasn1/3.6: 53 files, 564K
==> Installing ios-webkit-debug-proxy dependency: openssl
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0.1h.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.1h.mavericks.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

The OpenSSL provided by OS X is too old for some software.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.1h: 429 files, 14M
==> Installing ios-webkit-debug-proxy dependency: libimobiledevice
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libimobiledevice-1.1.6.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libimobiledevice-1.1.6.mavericks.bottle.tar.gz
🍺  /usr/local/Cellar/libimobiledevice/1.1.6: 58 files, 912K
==> Installing ios-webkit-debug-proxy
==> Downloading https://github.com/google/ios-webkit-debug-proxy/archive/1.3.tar.gz
######################################################################## 100.0%
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/ios-webkit-debug-proxy/1.3
==> make install
🍺  /usr/local/Cellar/ios-webkit-debug-proxy/1.3: 15 files, 160K, built in 13 seconds

My corporate laptop is a MacBook Pro /w Retina running 10.9.2.

SidBala commented 10 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.

appsforartists commented 10 years ago

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
zwri commented 10 years ago

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 .

SidBala commented 10 years ago

Any update wrightt? Does the proxy work on iOS 8 ?

paymand commented 10 years ago

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.

paymand commented 10 years ago

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?

maizaAvaro commented 10 years ago

I have the same setup as you and have tested a successful connection on iPad Retina

maizaAvaro commented 10 years ago

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.

ghost commented 10 years ago

i see this error Invalid message _rpc_applicationUpdated:

WIRApplicationIdentifierKey
<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>

jlipps commented 10 years ago

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.

appsforartists commented 10 years ago

Still not working for me.

Log

$ 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)
appsforartists commented 10 years ago

BTW, I can only find the brew formula for libimobiledevice 1.1.6.

ASYB commented 10 years ago

I also attempted to access the SafariLauncher app used for appium and I get this message from the log:

Invalid message _rpc_applicationUpdated:

WIRApplicationBundleIdentifierKey
<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...

sebv commented 10 years ago

@paymand is it working for you on 8.1 devices?

paymand commented 10 years ago

@sebv: Works with my 8.0.2 iPhone 5s, I'll double check with a 8.1 device tomorrow.

paymand commented 10 years ago

@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

sjrjanardhana commented 10 years ago

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

rpfeifle commented 9 years ago

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 6a58 inspector

The wierd thing here is the complaint of "Success". Other posters have had errors listed there

cades commented 9 years ago

Exactly the same problem as @maizaAvaro and @ASYB happens on iPhone 6 (iOS 8.1.2) and iPad, on OS X 10.10.1

confile commented 9 years ago

I think it depends on the version of Chrome it work with version 36 for me.

srihariinnamuri commented 9 years ago

Any solution for this issue, I am getting same issue on IPhone 6 (IOS 8.1)

Invalid message _rpc_applicationUpdated:

WIRApplicationIdentifierKey
<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

elennaro commented 9 years ago

Also have this message Invalid message _rpc_applicationUpdated

paymand commented 9 years ago

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

zwri commented 9 years ago

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

NehaDua commented 9 years ago

Hi All,

I was also facing this webkit crashing issue and trying its work around "./bin/ios-webkit-debug-proxy-launcher.js -c :27753 -d"

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

jchuong commented 9 years ago

@NehaDua That is only in the appium directory, not in your system directory. [appium]/bin/ios-webkit-debug-proxy-launcher.js

ASYB commented 8 years ago

@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.

paymand commented 8 years ago

@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.

ASYB commented 8 years ago

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 ??

paymand commented 8 years ago

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.

priyatech commented 8 years ago

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

artygus commented 7 years ago

hi @appsforartists, did it work for you eventually?

appsforartists commented 7 years ago

No idea - I don't even work at that job anymore. 😝

artygus commented 7 years ago

haha k, I guess it should be fixed anyway