Libimobiledevice: Difference between revisions
imported>Onny m Fix syntax errors |
imported>Mic92 ios: fix link |
||
Line 24: | Line 24: | ||
ERROR: Could not connect to lockdownd on device [...], lockdown error -8 | ERROR: Could not connect to lockdownd on device [...], lockdown error -8 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
you may need to restart the usbmuxd service as reported [ | you may need to restart the usbmuxd service as reported [https://github.com/NixOS/nixpkgs/issues/152592 here]: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
$ sudo systemctl restart usbmuxd.service | $ sudo systemctl restart usbmuxd.service | ||
</syntaxhighlight> | </syntaxhighlight> | ||
(it may take a bit of time) | (it may take a bit of time) |
Revision as of 06:13, 26 June 2022
In order to be able to automatically mount your iOS device (such as an iPhone) when connecting it, you need to install libimobiledevice
and to activate the usbmuxd
service.
Add the following to your configuration.nix
:
services.usbmuxd.enable = true;
environment.systemPackages = with pkgs; [
libimobiledevice
ifuse # optional, to mount using 'ifuse'
];
You can then mount your device using ifuse:
$ mkdir /tmp/iphone
$ ifuse /tmp/iphone
If you get an error about ERROR: No device found!
, check the status of usbmuxd
:
$ sudo systemctl status usbmuxd.service
If you see an error
ERROR: Could not connect to lockdownd on device [...], lockdown error -8
you may need to restart the usbmuxd service as reported here:
$ sudo systemctl restart usbmuxd.service
(it may take a bit of time)