Error installing iFuse to access iPad device content

I’m trying to install libimobiledevice and ifuse to be able to transfer files from my laptop to my iPad (mini 4).
Everything else installs fine, except iFuse. I try to install that using yay -S ifuse and this happens

make  all-recursive
make[1]: Entering directory '/home/aayush/.cache/yay/ifuse/src/ifuse-1.1.4'
Making all in docs
make[2]: Entering directory '/home/aayush/.cache/yay/ifuse/src/ifuse-1.1.4/docs'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/aayush/.cache/yay/ifuse/src/ifuse-1.1.4/docs'
Making all in src
make[2]: Entering directory '/home/aayush/.cache/yay/ifuse/src/ifuse-1.1.4/src'
  CC       ifuse.o
ifuse.c:41:10: fatal error: libimobiledevice/libimobiledevice.h: No such file or directory
 #include <libimobiledevice/libimobiledevice.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:379: ifuse.o] Error 1
make[2]: Leaving directory '/home/aayush/.cache/yay/ifuse/src/ifuse-1.1.4/src'
make[1]: *** [Makefile:377: all-recursive] Error 1
make[1]: Leaving directory '/home/aayush/.cache/yay/ifuse/src/ifuse-1.1.4'
make: *** [Makefile:318: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: ifuse

I can see it can’t find libimobiledevice. In fact, when I try

$ which libimobiledevice

it says

which: no libimobiledevice in (~/Tools/moog_nosm/moog_nosm_NOV2019:/home/aayush/.
iraf/bin:/home/aayush/miniconda3/bin:/home/aayush/miniconda3/condabin:/home/aayus
h/.iraf/bin:/home/aayush/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/
lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/v
ar/lib/snapd/snap/bin:/home/aayush/Documents/julia-1.5.3/bin)

I tried checking where libimobiledevice is installed via pacman -Ql | grep libimobiledevice and a part of the output I got is

libimobiledevice /usr/include/libimobiledevice/libimobiledevice.h
...
libimobiledevice /usr/lib/
libimobiledevice /usr/lib/libimobiledevice-1.0.so
libimobiledevice /usr/lib/libimobiledevice-1.0.so.6
libimobiledevice /usr/lib/libimobiledevice-1.0.so.6.0.0

I’m not sure why it can’t find it and how to make it work.

Help pls.

Also, if anyone knows a more convenient way of transferring files between an iPad to Linux, please suggest. This is a pain.

Maybe better use ifuse-git and build it with pamac
pamac build ifuse-git

moved to #support:aur

Hey, I’m sorry for an absurdly late reply. I needed to transfer files again and so I tried doing what you suggested

config.status: creating doxygen.cfg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

Configuration for libimobiledevice 1.3.1:
-------------------------------------------

  Install prefix: .........: /usr
  Debug code ..............: no
  Python bindings .........: yes
  SSL support backend .....: OpenSSL

  Now type 'make' to build libimobiledevice 1.3.1,
  and then 'make install' for installation.

make  all-recursive
make[1]: Entering directory '/var/tmp/pamac-build-aayush/libimobiledevice-git/src/libimobiledevice'
Making all in common
make[2]: Entering directory '/var/tmp/pamac-build-aayush/libimobiledevice-git/src/libimobiledevice/common'
  CC       thread.lo
  CC       debug.lo
  CC       socket.lo
  CC       utils.lo
  CC       userpref.lo
In file included from utils.c:37:
utils.h:37:10: fatal error: plist/plist.h: No such file or directory
 #include <plist/plist.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
userpref.c:39:10: fatal error: usbmuxd.h: No such file or directory
 #include <usbmuxd.h>
          ^~~~~~~~~~~
compilation terminated.
In file included from debug.c:34:
debug.h:26:10: fatal error: plist/plist.h: No such file or directory
 #include <plist/plist.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:470: userpref.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:470: utils.lo] Error 1
make[2]: *** [Makefile:470: debug.lo] Error 1
make[2]: Leaving directory '/var/tmp/pamac-build-aayush/libimobiledevice-git/src/libimobiledevice/common'
make[1]: *** [Makefile:460: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/pamac-build-aayush/libimobiledevice-git/src/libimobiledevice'
make: *** [Makefile:390: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

I checked if it’s because I don’t have libplist but I do

$ pamac search -i plist
libplist-git                                         1:2.2.0.r33.gfeb0bcd-1  AUR 
    A library to handle Apple Property List format
    whereas it's binary or XML

Can you suggest what to do?

I can’t reproduce the issue. Clean up the build folders and try again.