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

Invalid idevice_connection struct? Unable to attach <UDID> inspector #59

Closed
anshumanchatterji opened this issue Jun 6, 2014 · 4 comments

Comments

@anshumanchatterji
Copy link

Hi Team,

I am seeing this error as soon as i connect my iPad.

Invalid idevice_connection struct?: Undefined error: 0 Unable to get connection file descriptor.: Undefined error: 0 ss.remove_server_fd(5) Unable to attach c70fbb163gd3edee9bf781e0052d24a1111bb56e inspector

What I did:

brew install ios_webkit_debug_proxy
brew update
brew doctor

Then i corrected all the warnings as suggested by brew doctor. And ran this command:

ios_webkit_debug_proxy -d

the output was:

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)

but as soon as i plugged in my iPad, i got this error:

Invalid idevice_connection struct?: Undefined error: 0
Unable to get connection file descriptor.: Undefined error: 0
ss.remove_server_fd(5)
Unable to attach c70fbb163gd3edee9bf781e0052d24a1111bb56e inspector

This is my brew config output

HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 68da542651c8c8d4fa844cd7d32b8265b0231d4a
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.9.3-x86_64
Xcode: 5.0.2
CLT: 5.1.0.0.1.1396320587
Clang: 5.0 build 500
X11: N/A
System Ruby: 2.0.0-451
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /Users/crestech/.rvm/rubies/ruby-2.1.0/bin/ruby

@anshumanchatterji
Copy link
Author

What fixed the problem for me:

The working MacMini had libimobiledevice v1.1.5, and the two non-working MacBooks had v1.1.6.

So I had to downgrade the libimobiledevice to v1.1.5

Steps:

Type this on Terminal

  1. cd /usr/local
  2. git checkout 7e209f0 Library/Formula/libimobiledevice.rb
  3. brew unlink libimobiledevice
  4. brew install libimobiledevice

Reference:

http://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula

@SidBala
Copy link

SidBala commented Jun 13, 2014

Hitting same issue. Steps above work perfectly.

If your brew git is not initialized, run brew update between steps 1 and 2.

@ghouston
Copy link

Thanks! Your fix solved this error for me.

@artygus
Copy link
Collaborator

artygus commented Jan 19, 2017

seems to be fixed after upgrading libimobiledevice to 1.1.6

@artygus artygus closed this as completed Jan 19, 2017
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

4 participants