Coder Social home page Coder Social logo

Comments (31)

michaelgallacher avatar michaelgallacher commented on June 17, 2024 52

@dyang15 Please try the following:

brew uninstall ideviceinstaller
brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install ideviceinstaller
brew link --overwrite ideviceinstaller

from ideviceinstaller.

ancowestra avatar ancowestra commented on June 17, 2024 12

Thanks "sudo chmod -R 777 /var/db/lockdown/" works after OSX update 10.11.6

from ideviceinstaller.

 avatar commented on June 17, 2024 7

One way is to update the permissions in /var/db/lockdown folder.
sudo chmod -R 777 /var/db/lockdown

The other way I found is to remove and reinstall the ideviceinstaller from the HEAD of branch:

  1. brew uninstall ios-webkit-debug-proxy && brew install ios-webkit-debug-proxy
  2. brew uninstall libimobiledevice && brew install --HEAD libimobiledevice

from ideviceinstaller.

nikias avatar nikias commented on June 17, 2024 3

Interesting. Can you check the permissions of /var/db/lockdown just for reference?

ls -ld /var/db/lockdown

Mine are still 777 after the update.

from ideviceinstaller.

jpsim avatar jpsim commented on June 17, 2024 2

My permissions are 700 after running the latest version of ideviceinstaller (I didn't check prior to running this version):

$ ls -ld /var/db/lockdown
drwx------  11 _usbmuxd  _usbmuxd  374 Jul 26 17:01 /var/db/lockdown
$ stat -f '%A' /var/db/lockdown
700

from ideviceinstaller.

michaelgallacher avatar michaelgallacher commented on June 17, 2024 1

This issue for me began yesterday when I updated to El Capitan 10.11.6. It's almost certainly related to a security fix in a dependent module. Try running as 'sudo' and see if that works. It did for me, but that's clearly just a workaround.

from ideviceinstaller.

michaelgallacher avatar michaelgallacher commented on June 17, 2024 1

Just FYI, my permissions for lockdown are identical to what @jpsim listed above after I installed 10.11.6 and Xcode 8.0 beta 3. Not sure which of the two installs did it, but chmod 777 fixed it. Thx!

from ideviceinstaller.

nikias avatar nikias commented on June 17, 2024 1

@michaelgallacher chmod 777 is not the right approach here. Recompile libimobiledevice with the latest code from git.

from ideviceinstaller.

michaelgallacher avatar michaelgallacher commented on June 17, 2024 1

Well, yeah, but I didn't want to turn this thread into 'why doesn't ideviceinstaller compile on my mac." :) Thx.

from ideviceinstaller.

AbMathur avatar AbMathur commented on June 17, 2024 1

Hi All,
My ideviceinstaller problem is resolved on ubuntu 14.04, but i am still facing problem on MAC OS 10.11. i read all your comments but could make it through.

I have a Question :- which is the best Source to download a libimobiledevice or ideviceinstaller Packages, Whether from libimobile offical site or from github ?

i downloaded libimobiledevice package from github & start installing by these commands:
./autogen.sh
make
sudo make install

while firing make command , i got this error:
In file included from debug.c:36:
../src/idevice.h:30:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
make[2]: *** [debug.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

what is this error??, How to resolve this issue?

can someone tell me the steps to download these packages??

from ideviceinstaller.

niyaoyao avatar niyaoyao commented on June 17, 2024 1

@michaelgallacher Thank you so much ! It's work for me~~~~

from ideviceinstaller.

michaelgallacher avatar michaelgallacher commented on June 17, 2024

I'm trying to narrow it down. What versions of Mac OS, Xcode, and iTunes are you running?

from ideviceinstaller.

AbMathur avatar AbMathur commented on June 17, 2024

@michaelgallacher Sudo did'nt work for me. I am using El Capitan 10.11 & itunes 12.4.1.6 version.
i dnt think its Mac OS Problem, its something related to libimobiledevice Packges,

what do you say?

from ideviceinstaller.

michaelgallacher avatar michaelgallacher commented on June 17, 2024

Which version of 10.11? And do you have a non iOS 10 device you could try?

Sent from my Apple ][e.

On Jul 21, 2016, at 10:50 PM, AbMathur [email protected] wrote:

@michaelgallacher Sudo did'nt work for me. I am using El Capitan 10.11 & itunes 12.4.1.6 version.
i dnt think its Mac OS Problem, its something related to libimobiledevice Packges,

what do you say?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

from ideviceinstaller.

jpsim avatar jpsim commented on June 17, 2024

Getting this error with an iOS 9.3 and iOS 8.4 device on El Capitan 10.11.6. Can't test on previous versions of El Capitan at the moment to check if it's a regression.

from ideviceinstaller.

nikias avatar nikias commented on June 17, 2024

Did you guys compile the latest libimobiledevice code from git? If not, PLEASE do it before reporting an issue. The error is 100% not in ideviceinstaller.

from ideviceinstaller.

jpsim avatar jpsim commented on June 17, 2024

Did you guys compile the latest libimobiledevice code from git?

Yes. Though I'm not 100% sure I'm doing this right. Here are the commands I ran to compile and install ideviceinstaller from the latest sources:

mkdir libmobile
cd libmobile
brew update
brew install autoconf automake libtool libxml2 pkg-config libtasn1 openssl
git clone https://github.com/libimobiledevice/libplist.git
cd libplist
./autogen.sh
./configure
make
make install
cd ..
git clone [email protected]:libimobiledevice/libusbmuxd.git
cd libusbmuxd
./autogen.sh
./configure
make
make install
cd ..
git clone [email protected]:libimobiledevice/libimobiledevice.git
cd libimobiledevice
./autogen.sh
./configure
make
make install
cd ..
git clone [email protected]:libimobiledevice/ideviceinstaller.git
cd ideviceinstaller
export CFLAGS="-Wno-error"
./autogen.sh
./configure
make
make install

After running that, I get this:

$ ideviceinstaller -l -d
Could not connect to lockdownd. Exiting.

Here are all the commands and Terminal output for reference: https://gist.github.com/jpsim/b491a20e6f6c2a4dd29f33221a52776d

from ideviceinstaller.

saurik avatar saurik commented on June 17, 2024

So, there are two issues here, which is why @nikias is getting confused: there is the -5 error (which is what was originally reported by @AbMathur), and then there is a separate error (which would be -21) that looks very similar, which is caused by using newer versions of macOS (as mentioned by @michaelgallacher, and which is consistent with the error output from @jpsim). I spent some time tonight working with @conradev (who is actually running the newest version of macOS, unlike myself, who is still on 10.9.5 ;P), and we determined the issue is that /var/db/lockdown is now mode 700, and so the code in userpref_has_pair_record that mucks around in that folder no longer works. I've provided a patch in the form of a pull request at libimobiledevice/libimobiledevice#350.

from ideviceinstaller.

nikias avatar nikias commented on June 17, 2024

@saurik thanks for your comment :) The problem is there are tons of reports about something not working and in the end it turns out that people didn't even used the latest code but some precompiled packages. That's why I was asking. Additionally most people don't state on what platform version (or even platform) they are so it's hard to guess what might be causing this.
On another note, even the latest security fixed 10.11.6 still has /var/db/lockdown in mode 777 which is why the error reported by ideviceinstaller is probably still the -5 SSL error from libimobiledevice.
@jpsim since I assume you're on 10.11.6 based on your previous comments, is your /var/db/lockdown world rwx?
also, it would be helpful to reconfigure libimobiledevice with --enable-debug-code:

./configure --enable-debug-code && make && sudo make install

then ideviceinstaller -d will actually show debug output and it will show the actual issue with lockdownd.

from ideviceinstaller.

saurik avatar saurik commented on June 17, 2024

@nikias Yeah :(. FWIW, after leaving that comment, @conradev tracked down for me a set of comments with the full history of your SSLv3 issue (as I was checking to make certain the GnuTLS code didn't need to be updated for iOS 10), and I now see how that is also correlated to host OS version (as opposed to iOS version, which is what it has often been billed as), and so yeah: it is quite possible that all of the reports on this issue are the same -5 issue. (Hopefully, though, the separate -21 pull request I reported will get merged, though, as I'm running into tons of people on macOS Sierra ;P.)

from ideviceinstaller.

jpsim avatar jpsim commented on June 17, 2024

After building with @saurik's patch from libimobiledevice/libimobiledevice#350, I could run ideviceinstaller -l and ideviceinstaller -U successfully on my 10.11.6 (15G26a) machine. Note that I had to specify the CFLAGS="-Wno-error" env variable to build ideviceinstaller.

Thanks for the help @nikias and for the patch @saurik!

from ideviceinstaller.

nikias avatar nikias commented on June 17, 2024

Heh, there you go. Thanks!

from ideviceinstaller.

rcmpayne avatar rcmpayne commented on June 17, 2024

Lol thanks. I tired to compile this in mingw but keeps failing for me. I got libimobiledevice working without issue tho

from ideviceinstaller.

AbMathur avatar AbMathur commented on June 17, 2024

i also downloaded packages from home brew, all packages were downloaded successfully but same error were there Could not connect to lockdownd. Exiting.

from ideviceinstaller.

VasilijSviridov avatar VasilijSviridov commented on June 17, 2024

Hello everybody.
After upgrade to El Capitan 11.6 I was facing issue with lock downs from ideviceinstaller, after i granted access 777 to [/var/db/lockdown which was mode 700] all is working!!!
Thank you so much for fixing this!!!!!

from ideviceinstaller.

madusankapremaratne avatar madusankapremaratne commented on June 17, 2024

I am on mac OS 10.11.6
Any fixes for,
Making all in common
CC debug.lo
In file included from debug.c:36:
../src/idevice.h:30:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
make[2]: *** [debug.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Sorted the issue by building the openssl from source [1]
Clone the openssl repository
on Unix:

 $ ./config
    $ make
    $ make test
    $ make install

on OpenVMS:

    $ @config
    $ mms
    $ mms test
    $ mms install

on Windows (only pick one of the targets for configuration):

   $ perl Configure { VC-WIN32 | VC-WIN64A | VC-WIN64I | VC-CE }
    $ nmake
    $ nmake test
    $ nmake install

If any of these steps fails, see section Installation in Detail below.

This will build and install OpenSSL in the default location, which is:

Unix: normal installation directories under /usr/local
OpenVMS: SYS$COMMON:[OPENSSL-'version'...], where 'version' is the
OpenSSL version number with underscores instead of periods.
Windows: C:\Program Files\OpenSSL or C:\Program Files (x86)\OpenSSL

[1] - https://github.com/openssl/openssl

from ideviceinstaller.

myqqai avatar myqqai commented on June 17, 2024

.bash_profile
export PATH=/usr/local/opt/openssl/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$LD_LIBRARY_PATH
export CPATH=/usr/local/opt/openssl/include:$LD_LIBRARY_PATH

from ideviceinstaller.

dyang15 avatar dyang15 commented on June 17, 2024

I'm on OSX 10.11.6 and experiencing the same issue. When trying to install my app on iOS10 device using -ideviceinstaller I'm getting error "Could not connect to lockdown. Exiting". I do not have this issue with iOS 8 or 9 devices. I tried "sudo chmod -R 777 /var/db/lockdown/" but still not working.

from ideviceinstaller.

forcefeeld avatar forcefeeld commented on June 17, 2024

thank you @michaelgallacher

I've been trying to run calabash-ios using ideviceinstaller and the new device_agent solution using an iPhone 7 that was recently updated to ios 10.0.2

I have been getting the error message: "ERROR: Could not connect to lockdownd. Exiting." for the past week now trying to figure out, never thought to reinstall ideviceinstaller Seems to be installing my IPA file now. thanks again.

from ideviceinstaller.

seenuvlr1 avatar seenuvlr1 commented on June 17, 2024

hi @michaelgallacher

i have tried with your below mentioned procedure,

brew uninstall ideviceinstaller
brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install ideviceinstaller
brew link --overwrite ideviceinstaller

but, when i try to install "brew install --HEAD libimobiledevice" i am getting below error

configure: error:

Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"

ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.

please help me to solve this issue???

from ideviceinstaller.

michaelgallacher avatar michaelgallacher commented on June 17, 2024

Sounds like something is messed up with your brew install. I would try re-installing brew and checking to see which versions of Python you have installed and on your system path.

from ideviceinstaller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.