Open vitaly-zdanevich opened 7 years ago
EDIT by @nikias
Please never do this. Neither on macOS nor Linux. Latest git head code will work.
sudo chmod -R777/var/db/lockdown/
@vitaly-zdanevich does ideviceinfo
work?
( Not OP, but I also have the same problem)
ideviceinfo
also complains with the same error.
$ ideviceinfo
ERROR: Could not connect to lockdownd, error code -8
@nikias but is work for me, why dont do this???
This does not work for me with my iPhone6 running IOS12.3.2 on Linux Mint17.3. It is succeed in pairing with iPhone, but it fails to connect to iPhone, the password of the phone has been disabled and rebooted after all the packages are installed. It still throws out an exception "Failed to connect to lockdownd service on the device.Try again. If it still fails try rebooting your device."
Same as @ardypro with an iPad pro 10.5 with iOS 11 on Ubuntu 16.10.
I followed the guide at https://gist.github.com/samrocketman/70dff6ebb18004fc37dc5e33c259a0fc but I got the errors for both ifuse
and ideviceinfo
.
Run the commands with sudo:
sudo idevicepair pair
sudo ideviceinfo
sudo ifuse "yourpath"
I had the same errors as you, but when running the commands with sudo it worked.
Unfortunately the mounted folder disappears, after I run the ifuse command:
ls: /Volumes/iPhone: No such file or directory
I'm running macOS 10.12.6
Tested on iPhone 7 Plus with ios version 11.0.2
cloned libimobiledevice
latest commit is:
commit 5a85432719fb3d18027d528f87d2a44b76fd3e12 (HEAD -> master, origin/master, origin/HEAD)
Author: Nikias Bassen <nikias@gmx.li>
Date: Sun Aug 13 00:12:16 2017 +0200
lockdown: Don't explicitly validate pairing unless we're dealing with an older device
On newer iOS version, ValidatePair is not mandatory to gain trusted host
status. Starting with iOS 11, the ValidatePair request has been removed from
lockdownd and will throw an error. This commit adds a version check so that
ValidatePair is only called on devices prior iOS 7.
Compile:
env PKG_CONFIG_PATH="/usr/local/Cellar/openssl@1.1/1.1.0f/lib/pkgconfig" ./autogen.sh --enable-openssl --prefix=$HOME/libimobiledevice
make
make install
export PATH=$HOME/libimobiledevice/bin
export DYLD_LIBRARY_PATH=$HOME/libimobiledevice/lib
ifuse -d -u 34e61ebca0d088f41d77dec756dfaf1a722a0b56 --container <YOUR_BUNDLE_ID> ~/mount1
Don't forget to set the DYLD_LIBRARY_PATH so that ifuse will use the libimobiledevice dylib which you have compiled
Thanks so much for writing out these instructions.
I'm having a problem that I hope someone can help me out with. Once I get to the
make && make install
command for the various libraries, I get this error message: /bin/mkdir: cannot create directory ‘/home/#MYNAME#/usr/share/man/man1’: Permission denied
@YugoCode The directory is only visible for a sudo user. Switch to a root shell with sudo -i
and then you can change into the directory cd /Volumes/iPhone
The mount succeeded, but there was no data in this directory.why?? @adius
sudo ifuse -u xxxxxxx --documents com.test.testProject iphone and Application supports iTunes file sharing = YES in info.plist
@ardypro how the fuck would that be possible ? IOS12.3.2 july 20 2017 i am on ios 12 beta preview, due for release in fall of 2018 07-09-2018
ardypro commented on Jul 20, 2017
Debian stable: ifuse 1.1.2-0.1+b5
ifuse
fails with the same error message:
Try again. If it still fails try rebooting your device.
ipairdevice pair
works.
After some browsing, I found Sam Rocketman's article: https://gist.github.com/samrocketman/70dff6ebb18004fc37dc5e33c259a0fc
I had the idea to upgrade libimobiledevice6
from stable
to stretch-backports
. And it worked!
I have the same problem with my iPhone 11
Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.
I tried installing libimobiledevice
from source on my Ubuntu 16.04 but bumped into several unmet dependencies which, after spending 2 hours, I was eventually not able to resolve. I looks like libimobiledevice depends on libusbmuxd-2.0
and libusbmuxd-2.0
depends on libplist-2.0
and they are not available on standard Ubuntu 16 PPA, they are available on GitHub but I failed to install them as well.
I have the same problem with my iPhone 11
Failed to connect to lockdownd service on the device. Try again. If it still fails try rebooting your device.
I tried installing
libimobiledevice
from source on my Ubuntu 16.04 but bumped into several unmet dependencies which, after spending 2 hours, I was eventually not able to resolve. I looks like libimobiledevice depends onlibusbmuxd-2.0
andlibusbmuxd-2.0
depends onlibplist-2.0
and they are not available on standard Ubuntu 16 PPA, they are available on GitHub but I failed to install them as well.
@jedrekdomanski did you find anything? Or anybody found anything for iphone11 and ubuntu 16.04!!! In desperate need of help here. Thanks
No, I haven't tried it again since I last tried it.
Tried to reboot my iPad - the same result.
Installed from Brew head. macOS Sierra. iPad iOS 10.2.1
iExplorer can read files from the device.