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

Unable to run on Ubuntu 14.04 #66

Closed
stevenmc opened this Issue Aug 4, 2014 · 14 comments

Comments

Projects
None yet
@stevenmc

stevenmc commented Aug 4, 2014

ios_webkit_debug_proxyListing devices on :9221
Detected an old copy of libplist?! For a fix, see:
libimobiledevice/libimobiledevice#68 (comment): Success
Unable to start device_listener

I'm running libplist-dev 1.10.1 amd64 as this appears to be the latest download available.

I've looked through the suggested url, but it doesn't actually suggest a fix in the end.

Thanks.

@pat-richter

This comment has been minimized.

Show comment
Hide comment
@pat-richter

pat-richter Aug 21, 2014

I can confirm this problem.

Using Ubuntu 14.04 amd64 and the libplist-dev package.

I've tried to install a newer version from source, https://launchpad.net/ubuntu/+source/libplist/1.11-3 (using the libplist_1.11.orig.tar.bz2), but I failed.

Says libxml2 is not available, but it is

patrick@pat-workstation:~/Downloads/libplist-1.11$ dpkg -s libxml2-dev 
Package: libxml2-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 2858
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: same
Source: libxml2
Version: 2.9.1+dfsg1-3ubuntu4.3
Depends: libxml2 (= 2.9.1+dfsg1-3ubuntu4.3)
Suggests: pkg-config
Description: ...

Any ideas? Is there a better way to install the new (not released?) version, or can we modify another package for using the correct API?

Thanks so far

pat-richter commented Aug 21, 2014

I can confirm this problem.

Using Ubuntu 14.04 amd64 and the libplist-dev package.

I've tried to install a newer version from source, https://launchpad.net/ubuntu/+source/libplist/1.11-3 (using the libplist_1.11.orig.tar.bz2), but I failed.

Says libxml2 is not available, but it is

patrick@pat-workstation:~/Downloads/libplist-1.11$ dpkg -s libxml2-dev 
Package: libxml2-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 2858
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: same
Source: libxml2
Version: 2.9.1+dfsg1-3ubuntu4.3
Depends: libxml2 (= 2.9.1+dfsg1-3ubuntu4.3)
Suggests: pkg-config
Description: ...

Any ideas? Is there a better way to install the new (not released?) version, or can we modify another package for using the correct API?

Thanks so far

@paulrouget

This comment has been minimized.

Show comment
Hide comment
@paulrouget

paulrouget Aug 27, 2014

You need to build libplist 1.11. You'll find a tarball here: http://www.libimobiledevice.org/ (don't use the github code, they only provide version 2).

./configure --prefix=/foobar
make && make install

Then, rebuild ios-webkit-debug-proxy:

LDFLAGS="-L/foobar/lib/" CFLAGS="-I/foobar/include/" ./configure --prefix=/foobar && make && make install

Then run it that way:

LD_LIBRARY_PATH=/foobar/lib /foobar/bin/ios_webkit_debug_proxy

paulrouget commented Aug 27, 2014

You need to build libplist 1.11. You'll find a tarball here: http://www.libimobiledevice.org/ (don't use the github code, they only provide version 2).

./configure --prefix=/foobar
make && make install

Then, rebuild ios-webkit-debug-proxy:

LDFLAGS="-L/foobar/lib/" CFLAGS="-I/foobar/include/" ./configure --prefix=/foobar && make && make install

Then run it that way:

LD_LIBRARY_PATH=/foobar/lib /foobar/bin/ios_webkit_debug_proxy
@llvasconcellos

This comment has been minimized.

Show comment
Hide comment
@llvasconcellos

llvasconcellos Aug 29, 2014

I've made some changes on Paul's explanation:

  1. Download libplist 1.11 from http://www.libimobiledevice.org/, more precisily from http://www.libimobiledevice.org/downloads/libplist-1.11.tar.bz2
  2. Decompress, cd to decompressed dir, build and install to your home dir (mine is /home/leonardo).
mkdir ~/ios-proxy
./configure --prefix=/home/leonardo/ios-proxy
make && make install
  1. Rebuild ios-webkit-debug-proxy
LDFLAGS="-L/home/leonardo/ios-proxy/lib/" CFLAGS="-I/home/leonardo/ios-proxy/include/" ./configure --prefix=/home/leonardo/ios-proxy && make && make install
  1. Run ios_proxy:
LD_PRELOAD=/home/leonardo/ios-proxy/lib/libplist.so /home/leonardo/ios-proxy/bin/ios_webkit_debug_proxy

llvasconcellos commented Aug 29, 2014

I've made some changes on Paul's explanation:

  1. Download libplist 1.11 from http://www.libimobiledevice.org/, more precisily from http://www.libimobiledevice.org/downloads/libplist-1.11.tar.bz2
  2. Decompress, cd to decompressed dir, build and install to your home dir (mine is /home/leonardo).
mkdir ~/ios-proxy
./configure --prefix=/home/leonardo/ios-proxy
make && make install
  1. Rebuild ios-webkit-debug-proxy
LDFLAGS="-L/home/leonardo/ios-proxy/lib/" CFLAGS="-I/home/leonardo/ios-proxy/include/" ./configure --prefix=/home/leonardo/ios-proxy && make && make install
  1. Run ios_proxy:
LD_PRELOAD=/home/leonardo/ios-proxy/lib/libplist.so /home/leonardo/ios-proxy/bin/ios_webkit_debug_proxy
@tonedef

This comment has been minimized.

Show comment
Hide comment
@tonedef

tonedef Sep 3, 2014

Thanks Leonardo and Paul! Totally got me up and running. I had to make one minor change, perhaps it's just my setup, but to get it to run, I needed to change LD_PRELOAD to this:
LD_PRELOAD=/home/yourhomedir/ios-proxy/lib/libplist.so

tonedef commented Sep 3, 2014

Thanks Leonardo and Paul! Totally got me up and running. I had to make one minor change, perhaps it's just my setup, but to get it to run, I needed to change LD_PRELOAD to this:
LD_PRELOAD=/home/yourhomedir/ios-proxy/lib/libplist.so

@llvasconcellos

This comment has been minimized.

Show comment
Hide comment
@llvasconcellos

llvasconcellos Sep 3, 2014

@tonedef You're right. I've updated my comment.

llvasconcellos commented Sep 3, 2014

@tonedef You're right. I've updated my comment.

@paulrouget

This comment has been minimized.

Show comment
Hide comment
@paulrouget

paulrouget Sep 4, 2014

LD_LIBRARY_PATH should work too. LD_PRELOAD is a bit aggressive, but what ever works for you :)

paulrouget commented Sep 4, 2014

LD_LIBRARY_PATH should work too. LD_PRELOAD is a bit aggressive, but what ever works for you :)

@stevenmc

This comment has been minimized.

Show comment
Hide comment
@stevenmc

stevenmc Sep 10, 2014

Yeah, this worked for me too.
I'm not sure this should be marked as "closed" though, as it's a work-around, and not a fix to the problem. To be fixed, it should either work out-of-the-box, or be listed in a "Troubleshooting" section of the readme.

Thank you Paul and Leonardo!

stevenmc commented Sep 10, 2014

Yeah, this worked for me too.
I'm not sure this should be marked as "closed" though, as it's a work-around, and not a fix to the problem. To be fixed, it should either work out-of-the-box, or be listed in a "Troubleshooting" section of the readme.

Thank you Paul and Leonardo!

@xwk

This comment has been minimized.

Show comment
Hide comment
@xwk

xwk Nov 3, 2014

I followed @llvasconcellos ' recipe, the plist error went away indeed but got another error like "Could not start com.apple.webinspector". Any thoughts?

My machine is Ubuntu 14.04 64 bits and I have enabled Web Inspector option for Safari on the iPad. Below is a capture of the shell output.

LD_PRELOAD=/home/victor/ios-proxy/lib/libplist.so /home/victor/ios-proxy/bin/ios_webkit_debug_proxy -d

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=931
ss.add_server_fd(5)
Could not start com.apple.webinspector!: Success
ss.remove_server_fd(5)
Unable to attach 1271a2c6a01c812b46c0368a45ca49845efba763 inspector

xwk commented Nov 3, 2014

I followed @llvasconcellos ' recipe, the plist error went away indeed but got another error like "Could not start com.apple.webinspector". Any thoughts?

My machine is Ubuntu 14.04 64 bits and I have enabled Web Inspector option for Safari on the iPad. Below is a capture of the shell output.

LD_PRELOAD=/home/victor/ios-proxy/lib/libplist.so /home/victor/ios-proxy/bin/ios_webkit_debug_proxy -d

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=931
ss.add_server_fd(5)
Could not start com.apple.webinspector!: Success
ss.remove_server_fd(5)
Unable to attach 1271a2c6a01c812b46c0368a45ca49845efba763 inspector
@xwk

This comment has been minimized.

Show comment
Hide comment
@xwk

xwk Nov 4, 2014

I later realized the previous issue I reported has to do the specific iPad I was using, because neither can I get remote debugging on a Mac machine working with this iPad. When I changed to an iPad which can be successfully remote-debugged from MAC machine, I can successfully run the ios_webkit_debug_proxy and list the Safari tabs opened on the iPad.

HOWEVER, when I try to open a tab for inspecting, the content is empty as the screenshot shows.

image

Any idea?

xwk commented Nov 4, 2014

I later realized the previous issue I reported has to do the specific iPad I was using, because neither can I get remote debugging on a Mac machine working with this iPad. When I changed to an iPad which can be successfully remote-debugged from MAC machine, I can successfully run the ios_webkit_debug_proxy and list the Safari tabs opened on the iPad.

HOWEVER, when I try to open a tab for inspecting, the content is empty as the screenshot shows.

image

Any idea?

@programmin1

This comment has been minimized.

Show comment
Hide comment
@programmin1

programmin1 Nov 4, 2014

What does the MAC address have to do with this problem, is it connecting through network instead of over usb? I didn't know that was an option.

programmin1 commented Nov 4, 2014

What does the MAC address have to do with this problem, is it connecting through network instead of over usb? I didn't know that was an option.

@NetForce1

This comment has been minimized.

Show comment
Hide comment
@NetForce1

NetForce1 Nov 4, 2014

I have the same problem as @xwk, be it that I don't have a recent enough Mac available to test. Environment:
Ubuntu 14.10 x64 (running in VirtualBox)
iPad2,5 running iOS 8.1

NetForce1 commented Nov 4, 2014

I have the same problem as @xwk, be it that I don't have a recent enough Mac available to test. Environment:
Ubuntu 14.10 x64 (running in VirtualBox)
iPad2,5 running iOS 8.1

@elboletaire

This comment has been minimized.

Show comment
Hide comment
@elboletaire

elboletaire Nov 14, 2014

Same here as @xwk (can connect using ios_webkit_debug_proxy but if I manually access the URL using google chrome it appears blank; same as if I try the firefox WebIDE) using Ubuntu 14.04.1 and iOS 7.0.4

elboletaire commented Nov 14, 2014

Same here as @xwk (can connect using ios_webkit_debug_proxy but if I manually access the URL using google chrome it appears blank; same as if I try the firefox WebIDE) using Ubuntu 14.04.1 and iOS 7.0.4

@gingerlime

This comment has been minimized.

Show comment
Hide comment
@gingerlime

gingerlime Dec 16, 2014

having the same problem as @xwk with Xubuntu 14.04. Tried with both iPhone and iPad Mini and running either Chrome Version 39.0.2171.71 (64-bit) as well as vanilla Chromium Version 39.0.2171.65 Ubuntu 14.04 (64-bit) - always getting the "empty screen of death" :)

gingerlime commented Dec 16, 2014

having the same problem as @xwk with Xubuntu 14.04. Tried with both iPhone and iPad Mini and running either Chrome Version 39.0.2171.71 (64-bit) as well as vanilla Chromium Version 39.0.2171.65 Ubuntu 14.04 (64-bit) - always getting the "empty screen of death" :)

@artygus

This comment has been minimized.

Show comment
Hide comment
@artygus

artygus Jan 19, 2017

Collaborator

issue seems to be related to now outdated libplist version, if the problem still there feel free to reopen

Collaborator

artygus commented Jan 19, 2017

issue seems to be related to now outdated libplist version, if the problem still there feel free to reopen

@artygus artygus closed this Jan 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment