Coder Social home page Coder Social logo

libimobiledevice / ifuse Goto Github PK

View Code? Open in Web Editor NEW
771.0 44.0 131.0 119 KB

A fuse filesystem to access the contents of iOS devices

Home Page: https://libimobiledevice.org

License: GNU Lesser General Public License v2.1

Shell 0.85% C 92.20% Makefile 1.95% M4 5.00%
fuse afc mount ios ifuse c fuse-filesystem

ifuse's People

Contributors

corsac-s avatar funkym avatar fxchip avatar gilir avatar jonathanbeck avatar lool avatar mcolyer avatar nikias avatar sladen avatar swrh avatar tmzullinger avatar zbalaton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ifuse's Issues

Input/output error when copying files

When copying files from an iPhone 6s, I get the following error:

cp: cannot open 'IMG_0001.PNG' for reading: Input/output error

In the log it says:

Jul 5 21:33:35 iPhone afcd(libafc.dylib)[302] <Notice>: AFCFileLine="2071" AFCFileName="server.c" AFCCode="1" NSDescription="Failed open operation as there are additional hard links (2) to the file being opened." AFCVersion="261.25999999999999"

iOS is 12.3.1. Before upgrade when it was running 11.x it was working.

What could be wrong?

libimobiledevice 1.2.1 git
libusbmuxd 1.1.0 git
ifuse 1.1.3 git
OS: Debian 9

Can i use libimobiledevice in sandbox app?

I tried to connect the IOS device in a sandboxed App using this code.
There is no error returned, but the coreEventCallback is not called then.
idevice_error_t errCode = idevice_event_subscribe(coreEventCallback, NULL);

How to play with iOS 11.

Try to do mount on iOS 11 device,get error info. Failed to mount.
Is it possible to play with iOS 11?

Iphone XR udid format is not supported

For new iphone devices the udid format like this 0000XXXX-000YYYYYYYYYYYY is not supported the program:
"Invalid device UDID specified, length needs to be 40 characters"

the idevices_id -l return that udid format as well as iTunes

What is --appid ?

We've built an application that has 'packs' - GBs of data that is install by the user on-demand.

I'd like to use ifuse to copy data directly into the Documents directory for testing.

Looking at this command:

ifuse --appid /Volumes/ACOED.app

.. what do I need to put as the app id?

New release?

Why not to publish a new release and notify the distributions to integrate it to the official repos? The latest 1.1.3 was published 3 years ago and have a lot of issues that the HEAD fixes. Particularly, the 1.1.3 doesn't have --documents option and doesn't mount app folders, but manually compiled (from the HEAD) binary works fine!

Transfer speed is low.

Linux Ubuntu 16.04 Kernel 4.9.0
Mount a player app, and copy some file to app document mount directory.
The copy speed is about 2MB/s, thought should be higher.
iPad 9.7 2017 iOS 10

ERROR: InstallationLookupFailed

--documents APPID works fine for me, however trying to mount the sandbox root of an app with --container prints out the following: ERROR: InstallationLookupFailed
I'm on iOS 8.3

Mount not visible or accessible

Environment: iPad Air iOS 8.3. Mac OS X Yosemite. libimobiledevice version 1.2.0 installed with brew. ifuse version 1.1.3 installed with brew.

Running these commands:

sudo mkdir -p /test
sudo ifuse --documents com.ngrain.augment /test

Where "com.ngrain.augment" is the bundle id. The ifuse command runs without an error. The mount shows up in the list of mounts when running the "mount" command, but the mount itself is not visible in finder or with "ls -a". Running the command:

GetFileInfo /test

Results in "/Applications/Xcode.app/Contents/Developer/usr/bin/GetFileInfo: could not refer to file (-43)".

cross-compiling

Hi
I want to cross-compiling this project in openwrt,but failed like this:

lib/libplist.so.3.0.0: undefined reference to xmlDetectCharEncoding@LIBXML2_2.4.30' /home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference toERR_remove_thread_state'
/home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference to SSL_CTX_use_RSAPrivateKey' /home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference toASN1_TIME_free'
/home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference to usbmuxd_connect' /home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libfuse.so.2.9.3: undefined reference topthread_join'
/home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference to BN_new' /home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference tousbmuxd_subscribe'
/home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference to PEM_write_bio_X509' /home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libplist.so.3.0.0: undefined reference toxmlFreeDoc@LIBXML2_2.4.30'
/home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference to EVP_PKEY_free' /home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference toX509_sign'
/home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference to X509V3_EXT_cleanup' /home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libimobiledevice.so.5.0.0: undefined reference toSSL_write'
/home/abba/openwrt_trunk/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libfuse.so.2.9.3: undefined reference to `pthread_setspecific'
collect2: error: ld returned 1 exit status
Makefile:332: recipe for target 'ifuse' failed

Of course ,it is a part of the error message.
Could you tell me what should i do?
Thank you.

How to install ifuse

HI
I did this:
sudo PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
Password:
checking whether make supports nested variables... yes
.....
checking for libfuse... no
configure: error: Package requirements (fuse >= 2.7.0) were not met:

No package 'fuse' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libfuse_CFLAGS
and libfuse_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

but I can not find where to install libfuse? I try brew and port ,all can not find libfuse

Problem With a 'libfuse' Dependencie

I'm trying to install iFuse 1.1.3, according with the readme file, all these dependencies must be installed in order to get a successful installation of iFuse 1.1.3:

1.- libfuse (and the associated kernel modules)
2.- libimobiledevice
3.- libplist

Whn I go to the terminal and 'sudo dpkg -l | grep fuse' this is what I have:

ii fuse > 2.9.2-4ubuntu4.14.04.1
ii fuseiso > 20070708-3ubuntu1
ii fuseiso9660 > 0.3-1.1
ii gvfs-fuse > 1.20.3-0ubuntu1.2
iU ifuse > 1.1.3-1
ii libfuse-dev > 2.9.2-4ubuntu4.14.04.1
ii libfuse2:i386 > 2.9.2-4ubuntu4.14.04.1

so I thought 'libfuse2' was a newer version of 'libefuse' [see dependencie #1] but apparently they are a whole different thing because when I try to 'sudo checkinstalll' [I prefer to use 'checkinstall' instead of 'make install'] this is what I get on the screen:

dpkg: dependency problems prevent configuration of ifuse:
ifuse depends on libfuse; however: Package libfuse is not installed.
dpkg: error processing package ifuse (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
ifuse

runing apt-get install libfuse returns this:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libfuse is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libfuse' has no installation candidate]

I have googled for the 'libfuse' package but it has been impossible to find it, so maybe somebody can help me out with this please.

PS: My linux ditro is Mint 17.2 Rafaela

Thanks in advance.

Documents on Iphone is not auto mounting

After I reset my iPhone 6, the documents folder that used to automount on connecting iPhone over USB is not working, tried reinstalling but that didn't help, tried ifuse but speeds are so slow. Please solve this issue of mine

I am using Ubuntu 18.10.

iOS 10: Failed to connect to lockdownd service on the device

EDIT: Solution

Build with OpenSSL instead of GnuTLS. GnuTLS does not work with iOS10 devices. The package maintainer in Ubuntu built libimobiledevice with --disable-openssl option forcing GnuTLS. See the last comment in this issue for my solution.


Problem

I'm trying to connect my iPhone 5S to my Linux system to retrieve pictures. Prior to updating to iOS 10, it worked. Post-upgrade to iOS 10 I can no longer mount the storage. Downgrading iPhone is not possible on Linux.

ifuse errors with:

GnuTLS error: Error in the pull function.
Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.

I've attempted to reboot my device and it always gives the same error.

I built ifuse from source (at master HEAD) to try to resolve the issue. It is still not resolved.

Version info

Date retrieved the below dependencies: Tue Nov 1 03:35:16 UTC 2016

OS: Ubuntu 16.04 x64
uname -rms: Linux 4.4.0-45-generic x86_64
Compiled from source:
  GnuTLS (master branch HEAD)
  libusbmuxd (master branch HEAD)
  usbmuxd (master branch HEAD)
  libimobiledevice (master branch HEAD)
  ifuse (master branch HEAD)

Fully documented build process

I have fully documented exactly how I built and installed all of the utilities on Ubuntu 16.04,

https://gist.github.com/samrocketman/70dff6ebb18004fc37dc5e33c259a0fc

More verbose error

$ export GNUTLS_DEBUG_LEVEL=99

$ idevicepair pair
SUCCESS: Paired with device 37b633350ab83dc815a6a97dcd6d327b12c41968

$ ifuse ~/usr/mnt/
gnutls[2]: Enabled GnuTLS 3.4.10 logging...
gnutls[2]: Intel SSSE3 was detected
gnutls[2]: Intel AES accelerator was detected
gnutls[2]: Intel GCM accelerator was detected
gnutls[5]: REC[0x6b45c0]: Allocating epoch #0
gnutls[3]: ASSERT: gnutls_constate.c:596
gnutls[5]: REC[0x6b45c0]: Allocating epoch #1
gnutls[4]: HSK[0x6b45c0]: Keeping ciphersuite: GNUTLS_RSA_AES_128_CBC_SHA1 (00.2F)
gnutls[4]: HSK[0x6b45c0]: Keeping ciphersuite: GNUTLS_RSA_AES_256_CBC_SHA1 (00.35)
gnutls[4]: EXT[0x6b45c0]: Sending extension ENCRYPT THEN MAC (0 bytes)
gnutls[4]: EXT[0x6b45c0]: Sending extension SAFE RENEGOTIATION (1 bytes)
gnutls[4]: EXT[0x6b45c0]: Sending extension SESSION TICKET (0 bytes)
gnutls[4]: HSK[0x6b45c0]: CLIENT HELLO was queued [62 bytes]
gnutls[11]: HWRITE: enqueued [CLIENT HELLO] 62. Total 62 bytes.
gnutls[11]: HWRITE FLUSH: 62 bytes in buffer.
gnutls[5]: REC[0x6b45c0]: Preparing Packet Handshake(22) with length: 62 and min pad: 0
gnutls[9]: ENC[0x6b45c0]: cipher: NULL, MAC: MAC-NULL, Epoch: 0
gnutls[11]: WRITE: enqueued 67 bytes for 0x6b7bf0. Total 67 bytes.
gnutls[5]: REC[0x6b45c0]: Sent Packet[1] Handshake(22) in epoch 0 and length: 67
gnutls[11]: HWRITE: wrote 1 bytes, 0 bytes left.
gnutls[11]: WRITE FLUSH: 67 bytes in buffer.
gnutls[11]: WRITE: wrote 67 bytes, 0 bytes left.
gnutls[3]: ASSERT: gnutls_buffers.c:1154
gnutls[10]: READ: -2 returned from 0x6b7bf0, errno=0 gerrno=0
gnutls[3]: ASSERT: gnutls_buffers.c:367
gnutls[3]: ASSERT: gnutls_buffers.c:588
gnutls[3]: ASSERT: gnutls_record.c:1038
gnutls[3]: ASSERT: gnutls_record.c:1158
gnutls[3]: ASSERT: gnutls_buffers.c:1409
gnutls[3]: ASSERT: gnutls_handshake.c:1446
gnutls[3]: ASSERT: gnutls_handshake.c:2757
gnutls[5]: REC[0x6b45c0]: Start of epoch cleanup
gnutls[5]: REC[0x6b45c0]: End of epoch cleanup
gnutls[5]: REC[0x6b45c0]: Epoch #0 freed
gnutls[5]: REC[0x6b45c0]: Epoch #1 freed
GnuTLS error: Error in the pull function.
Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.

`Failed to connect to lockdownd service on the device.`

$ ifuse ~/iPad -u 5932hfa1d13b1c5d5535704278dec08ce3681540
Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.

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.

Switch to fuse 3.x

From the release notes of libfuse 2.9.9:

Note: This is a maintenance release from the 2.9 branch of libfuse. Users are encouraged to transition to the actively developed libfuse 3.x.

complie failed

sudo PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure
......
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libimobiledevice... yes
checking for libfuse... no
configure: error: Package requirements (fuse >= 2.7.0) were not met:

No package 'fuse' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libfuse_CFLAGS
and libfuse_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details

Compiling for windows

Hi,
could you please help me and tell me how to compile the ifuse for windows.
Or is it possible to compile it for windows when it requires libfuse library?

Thanks a lot for any help!

Its taking about 25-30 sec to reflect the changes on iPhone

Hi,

I'm creating a file-based communication system to do some automation stuff.
My iOS app has a file watcher implemented to detect changes in a specific file in my apps documents directory. When I write the file using iTunes, my file watcher detects quickly. But when I write the file via ifuse mounted path, my app is detecting the file almost after 25~30 sec.

Is there any specific config that can give me similar responsiveness like iTunes.

My file is a tiny JSON file (~1kb)

Any idea why it is behaving this way?

ifuse 1.1.3 not installable

Hey,

don't know if it is a problem on my side.
I did a fresh install of libimobiledevice 1.1.6 (unstable) on my Ubuntu 12.04.04 (32bit).
After that I try to ./configure ifuse 1.1.3, but I receive following output:

configure: error: Package requirements (fuse >= 2.7.0) were not met:
No package 'fuse' found

but fuse is installed, because dpkg -l | grep fuse

ii  fuse               2.8.6-2ubuntu2                 Filesystem in Userspace
ii  libfuse2           2.8.6-2ubuntu2                 Filesystem in Userspace (library)

What is wrong here?

Best regards
ITL


btw: All your library packages' README files contain as install instructions:

./autogen.sh
./configure
make
sudo make install

In fact, there is no autogen.sh

Deleting a photo does not delete it from the device

Deleting a photo inside the mountpoint won't remove if from the device. The photo will stop appearing on the mountpoint (and there's no indication of failure), but it's simply "still there" on the device.

I'm using and iPhone 6, with ifuse 1.1.3.

SIGABRT: stack smashing detected

ifuse 1.1.3
Debian Sid
Linux glossy 5.2.0-3-amd64 #1 SMP Debian 5.2.17-1 (2019-09-26) x86_64 GNU/Linux

$ ifuse -d ~/mnt
*** stack smashing detected ***: <unknown> terminated
Aborted (core dumped)

Installed a bunch of dbgsym packages but backtrace has nothing useful.

Strace output attached.

ifuse_strace.txt

Can't do "make"

make all-recursive
make[1]: Entering directory '/home/pi/Downloads/ifuse-master'
Making all in docs
make[2]: Entering directory '/home/pi/Downloads/ifuse-master/docs'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/pi/Downloads/ifuse-master/docs'
Making all in src
make[2]: Entering directory '/home/pi/Downloads/ifuse-master/src'
CC ifuse.o
CCLD ifuse
/usr/local/lib/libimobiledevice.so: undefined reference to `usbmuxd_save_pair_record_with_device_id'
collect2: error: ld returned 1 exit status
Makefile:342: recipe for target 'ifuse' failed
make[2]: *** [ifuse] Error 1
make[2]: Leaving directory '/home/pi/Downloads/ifuse-master/src'
Makefile:362: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/Downloads/ifuse-master'
Makefile:303: recipe for target 'all' failed
make: *** [all] Error 2

Raspberry pi3 with stretch

InstallationLookupFailed

Using
ifuse --documents <appid> <mountpoint>
results in
ERROR: InstallationLookupFailed

iOS 10.2.1

DFU mode -- device not found

Model: iPhone 5s

root@kali:~# lsusb | grep Apple
Bus 002 Device 007: ID 05ac:1227 Apple, Inc. Mobile Device (DFU Mode)
root@kali:~# irecovery -r
root@kali:~# irecovery -vv -m
Attempting to connect... 
opening device 05ac:1227...
Setting to configuration 1
Setting to interface 0:0
Connected to iPhone6,1, model n51ap, cpid 0x8960, bdid 0x00
DFU Mode
root@kali:~# irecovery -vv -n
Attempting to connect... 
opening device 05ac:1227...
Setting to configuration 1
Setting to interface 0:0
Connected to iPhone6,1, model n51ap, cpid 0x8960, bdid 0x00
Command completed successfully
root@kali:~# ifuse /media/iphone
No device found, is it connected?
If it is make sure that your user has permissions to access the raw usb device.
If you're still having issues try unplugging the device and reconnecting it.
root@kali:~# 

Missing package 'fuse'

Build the following deps:

  • libplist
  • libusbmuxd
  • libimobiledevice

I'm trying to build ifuse now. . . and get:

checking for libfuse... no
configure: error: Package requirements (fuse >= 2.7.0) were not met:

No package 'fuse' found

. . . can you remind me where 'fuse' comes from?

Can't import sys/statfs.h - wrap in Macro?

Trying to compile dependency libfuse on OSX:

http://lists.apple.com/archives/unix-porting/2012/Jun/msg00001.html

On Jun 5, 2012, at 1:33 PM, Andreas Muhlbauer email@hidden wrote:

I am trying to get a library compiled on my mac but I receive a compile error related to a missing include file (sys/statfs.h). I previously compiled this code on my linux box without issues using gcc and gfortran.
It looks like OS X is missing the statfs.h file in /usr/include/sys. Indeed, I have that file on my linux box but not on OS X. I am using OS X 10.7.4. Any ideas how to resolve this issue?

OS X does not provide a sys/statfs.h header. sys/param.h and sys/mount.h may contain what you want, such as the statfs(2) function itself.

Could not ifuse mount-point for iphone 4S

The newer version of ifuse changed option from --appid to --documents

I have tried iphone 3GS, iphone 4, and iphone 4S.

ifuse works properly for iphone 3GS(with version ios 6.1.3) and iphone 4(with version ios 7.0.4)

ifuse failed to mount Documents folder for iphone 4S(with version ios 7.0.4 ) with following error message:

Failed to start AFC service 'com.apple.mobile.house_arrest' on the device.

Tag 1.1.3.1 or 1.1.4?

A reversion 1.1.3 was released without a git tag, which means there is no auto-generated download for this version.

Also, I note that there are OS X fixes that went in after 1.1.3 was released.

Can a new version be tagged to help with packaging this software in Homebrew?

Homebrew/legacy-homebrew#26117

Thanks.

Read-only access to app folders

In order to facilitate file transfer to/from my iPhone, I installed iFuse using Pamac, Manjaro Linux's application installer. I then created a directory 'iPhone' in my home directory, in which to mount my iPhone. Unfortunately, I have two problems:

When I connect iPhone to my PC via USB cable, it mounts in Thunar's side pane. And iPhone's system directory's (AirFair, Books, DCIM, Downloads, iTunes_Control, iTunes Restore, MediaAnalysis, PhotoData,Recordings) mount/display inside my 'iPhone' directory.
Inside my 'iPhone' directory, I am able to create further directories, and copy files to it. However, I do not see them in the Files app on my iPhone, or Documents 6 file manager app. So I have no way of accessing the files I have copied to my iPhone.

By clicking on 'Documents on Wendy's iPhone' entry in Thunar's side pane, I am able to access the folders of installed apps (similar to iTunes file sharing). However, when I try to copy a file to an app's folder (e.g. Documents 6 file manager) a message displays "Error while copying to Documents. The destination is read-only".
For information, I am able to copy files out of the app's folder to my PC.
If someone could help me resolve these issues, I would be grateful.

ifuse crashed OS X Yosemite

I used the command ifuse --documents com.taobao.taobao4iphone ~/tmp, and the system hangs, and then goes crash, and the system reboots.

My environments:

  • MacBook Pro (Retina, 13-inch, Early 2013) with Yosemite 10.10.2
  • iPhone 5c, iOS 8.1.3
  • libimobiledevice-1.2.0
  • ifuse 1.1.3

I ran id | grep fuse && echo yes! || echo not yet..., and echos not yet..., I don't know if this is related to the crash issue.

Could anyone help? Thank you!

I can't run .autogen.sh on MacOS 10.9.5

When, running autogen, I get the following

./autogen.sh
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
./configure: line 3899: syntax error near unexpected token `libimobiledevice,'
./configure: line 3899: `PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.0.0)'

I have libtool-2.4.2, automake-1.15 and autoconf-2.69

Thanks in advance !

Better error message for "InstallationLookupFailed" (#24)

Comments in #24 describe in what cases ifuse will fail with InstallationLookupFailed. It would be helpful to provide a better error message in that case, so users don't need to go searching for the error.

Another way to make things more clear might be to list app ids that are actually mountable (related to #28), because most apps will not work anymore.

ifuse cannot find the connected device

Hey, i've just compiled and installed libimobiledevice, ifuse plist and usbmuxd code from the sources available here, but i am facing a problem with ifuse.

First of all the idevice* apps are working smoothly. I managed to pair and validate my device, i am able to check its name and all its information. usbmuxd is running continously without errors (anymore :P), but now that only ifuse is left to mount the device it prompts this :

No device found, is it connected?
If it is make sure that your user has permissions to access the raw usb device.
If you're still having issues try unplugging the device and reconnecting it.

Any help is appreciated :D

Question: Compile error when building. . . because I'm using clang?

Have build dependencies: libusbmuxd, libimobiledevice, usbmudx

Now building ifuse, get:

Making all in src
gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/usr/local/include/osxfuse/fuse -I/usr/local/include -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include -I/opt/local/include/libxml2 -g -g -O2 -MT ifuse.o -MD -MP -MF .deps/ifuse.Tpo -c -o ifuse.o ifuse.c
ifuse.c:258:29: error: assigning to 'struct timespec' from incompatible type 'time_t' (aka 'long')
stbuf->st_birthtimespec = (time_t)(atoll(info[i+1]) / 1000000000);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Any idea?

ifuse with iphone4, got I/O error when file copy

Hi

i wrote a shell script(bash, debian), using ifuse to mount iphone4(A1332) in script
always got message: I/O error when copy file (no matter --container or --documents)
this happen only in iphone4(other my 3 iphone4 got the same error )

but iphone4 in command line , mount and copy file is OK

the same script in iphone4s is OK .

ifuse version 2014/3/2
libfuse 2.9.0

any suggestion?
Thank you

Error code -36 when writing files on OS X 10.11.5

Copying files in the Finder to an iOS volume using OSXFUSE 2.8.3 results in an Error code -36 message. The file is still copied and can be read as well. Duplicating files on the iOS volume does not produce an error.

Does not work with IOS 7.1.2 (iPhone 5c)

Error:

borisov@deli:~ $ ifuse -d ~/mnt/
Please dismiss the trust dialog on your device and try again.
The device does not allow pairing as long as the dialog has not been accepted.

The trust dialog pops up on the screen and I accept it, but when I try again the same thing happens.

I'm using the latest libplist, libimobiledevice and ifuse from git.

Segmentation Fault: 11

ifuse --appid com.apple.iBooks /Volumes/iPad/ causes Segmentation Fault: 11

gardner-MacBookPro:idevicecrashlog gardner$ which ifuse
/usr/local/bin/ifuse
gardner-MacBookPro:idevicecrashlog gardner$ ifuse --version
ifuse version 1.1.2
gardner-MacBookPro:idevicecrashlog gardner$ which ideviceinstaller
/usr/local/bin/ideviceinstaller
gardner-MacBookPro:~ gardner$ ls -la /Volumes/iPad/
total 0
drwxr-xr-x+ 2 gardner admin 68 Aug 21 17:10 .
drwxrwxrwt@ 5 root admin 170 Aug 21 17:10 ..
gardner-MacBookPro:~ gardner$

~/.config/libimobiledevice/libimobiledevicerc

[Global]
HostID=D09AA564-D76D-C46C-8C1B-C519195C7C0E
gardner-MacBookPro:~ gardner$ 

crashlog

Process:         ifuse [20159]
Path:            /usr/local/Cellar/ifuse/1.1.2/bin/ifuse
Identifier:      ifuse
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  bash [733]

Date/Time:       2013-08-21 17:11:09.781 -0700
OS Version:      Mac OS X 10.7.5 (11G63b)
Report Version:  9

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000000000f700

VM Regions Near 0xf700:
--> 
    __TEXT                 000000010d81e000-000000010d821000 [   12K] r-x/rwx SM=COW  /usr/local/Cellar/ifuse/1.1.2/bin/ifuse

Application Specific Information:
objc[20159]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libimobiledevice.4.dylib        0x000000010d86356b property_list_service_client_new + 27
1   libimobiledevice.4.dylib        0x000000010d86c17a house_arrest_client_new + 26
2   ifuse                           0x000000010d81face main + 834
3   ifuse                           0x000000010d81ecb8 start + 52

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x000000000000ffff  rbx: 0x00007fff6d41d4a0  rcx: 0x0000000000000000  rdx: 0x00007fff6d41d4a0
  rdi: 0x00007ff7f0c0ade0  rsi: 0x000000000000f700  rbp: 0x00007fff6d41d490  rsp: 0x00007fff6d41d480
   r8: 0x0000000000000002   r9: 0x00007ff7f0c0b660  r10: 0x000000000000c000  r11: 0x000000010d86c160
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
  rip: 0x000000010d86356b  rfl: 0x0000000000010206  cr2: 0x000000000000f700
Logical CPU: 0

Binary Images:
       0x10d81e000 -        0x10d820ff7 +ifuse (??? - ???) <5F5C9FF6-B658-3BD1-971B-44A0B0183AD1> /usr/local/bin/ifuse
       0x10d828000 -        0x10d846fff +libfuse4x.2.dylib (11.7.0 - compatibility 11.0.0) <4626925E-0853-390D-9847-8510856BA30D> /usr/local/lib/libfuse4x.2.dylib
       0x10d860000 -        0x10d872fff +libimobiledevice.4.dylib (5.1.0 - compatibility 5.0.0) <846641B7-AAF3-3754-9E79-90FDD8DA7554> /usr/local/lib/libimobiledevice.4.dylib
       0x10d87e000 -        0x10d885ff7 +libplist.1.1.10.dylib (1.1.10 - compatibility 1.0.0) <B0032906-2D76-3BAB-9E3B-274C0DBE0851> /usr/local/lib/libplist.1.1.10.dylib
       0x10d88e000 -        0x10d891fff +libusbmuxd.1.0.8.dylib (1.0.8 - compatibility 2.0.0) <FCBCBBFE-F310-324F-8782-11DD0F84F50A> /usr/local/lib/libusbmuxd.1.0.8.dylib
    0x7fff6d41e000 -     0x7fff6d452baf  dyld (195.6 - ???) <C58DAD8A-4B00-3676-8637-93D6FDE73147> /usr/lib/dyld
    0x7fff84af9000 -     0x7fff84afdfff  libdyld.dylib (195.6.0 - compatibility 1.0.0) <FFC59565-64BD-3B37-90A4-E2C3A422CFC1> /usr/lib/system/libdyld.dylib
    0x7fff84f0a000 -     0x7fff84f1cff7  libz.1.dylib (1.2.5 - compatibility 1.0.0) <30CBEF15-4978-3DED-8629-7109880A19D4> /usr/lib/libz.1.dylib
    0x7fff85542000 -     0x7fff85547fff  libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib
    0x7fff8582a000 -     0x7fff8582cfff  libquarantine.dylib (36.7.0 - compatibility 1.0.0) <8D9832F9-E4A9-38C3-B880-E5210B2353C7> /usr/lib/system/libquarantine.dylib
    0x7fff8582d000 -     0x7fff8587bfff  libauto.dylib (??? - ???) <D8AC8458-DDD0-3939-8B96-B6CED81613EF> /usr/lib/libauto.dylib
    0x7fff86492000 -     0x7fff86497ff7  libsystem_network.dylib (??? - ???) <5DE7024E-1D2D-34A2-80F4-08326331A75B> /usr/lib/system/libsystem_network.dylib
    0x7fff869e8000 -     0x7fff869f0fff  libsystem_dnssd.dylib (??? - ???) <584B321E-5159-37CD-B2E7-82E069C70AFB> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff869f1000 -     0x7fff869f2fff  libdnsinfo.dylib (395.11.0 - compatibility 1.0.0) <853BAAA5-270F-3FDC-B025-D448DB72E1C3> /usr/lib/system/libdnsinfo.dylib
    0x7fff86a88000 -     0x7fff86aa8fff  libsystem_kernel.dylib (1699.32.7 - compatibility 1.0.0) <66C9F9BD-C7B3-30D4-B1A0-03C8A6392351> /usr/lib/system/libsystem_kernel.dylib
    0x7fff871a3000 -     0x7fff871a4fff  libunc.dylib (24.0.0 - compatibility 1.0.0) <337960EE-0A85-3DD0-A760-7134CF4C0AFF> /usr/lib/system/libunc.dylib
    0x7fff87385000 -     0x7fff873a2fff  libxpc.dylib (77.19.0 - compatibility 1.0.0) <9F57891B-D7EF-3050-BEDD-21E7C6668248> /usr/lib/system/libxpc.dylib
    0x7fff875ff000 -     0x7fff8763afff  libsystem_info.dylib (??? - ???) <35F90252-2AE1-32C5-8D34-782C614D9639> /usr/lib/system/libsystem_info.dylib
    0x7fff89192000 -     0x7fff891a0fff  libdispatch.dylib (187.10.0 - compatibility 1.0.0) <8E03C652-922A-3399-93DE-9EA0CBFA0039> /usr/lib/system/libdispatch.dylib
    0x7fff891a1000 -     0x7fff8927efef  libsystem_c.dylib (763.13.0 - compatibility 1.0.0) <41B43515-2806-3FBC-ACF1-A16F35B7E290> /usr/lib/system/libsystem_c.dylib
    0x7fff895d3000 -     0x7fff897a7ff7  com.apple.CoreFoundation (6.7.2 - 635.21) <62A3402E-A4E7-391F-AD20-1EF20236CE1B> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8998b000 -     0x7fff8998cff7  libsystem_sandbox.dylib (??? - ???) <5459F293-E1F2-33B3-B9B2-2ABB7B915B62> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff8a62c000 -     0x7fff8a665ff7  libssl.0.9.8.dylib (49.0.0 - compatibility 0.9.8) <AE5B0BB9-75F1-34DA-A10F-63F2640210A8> /usr/lib/libssl.0.9.8.dylib
    0x7fff8a911000 -     0x7fff8a912ff7  libremovefile.dylib (21.1.0 - compatibility 1.0.0) <739E6C83-AA52-3C6C-A680-B37FE2888A04> /usr/lib/system/libremovefile.dylib
    0x7fff8a97c000 -     0x7fff8a9beff7  libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <BB770C22-8C57-365A-8716-4A3C36AE7BFB> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8ab43000 -     0x7fff8ab43fff  libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib
    0x7fff8b03d000 -     0x7fff8b0b0fff  libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2> /usr/lib/libstdc++.6.dylib
    0x7fff8b6e3000 -     0x7fff8b7c7e5f  libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <871E688B-CF57-3BC7-80D6-F6476DFF109B> /usr/lib/libobjc.A.dylib
    0x7fff8b7c8000 -     0x7fff8b7c9fff  libDiagnosticMessagesClient.dylib (??? - ???) <3DCF577B-F126-302B-BCE2-4DB9A95B8598> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff8bcd0000 -     0x7fff8bdc5fff  libiconv.2.dylib (7.0.0 - compatibility 7.0.0) <5C40E880-0706-378F-B864-3C2BD922D926> /usr/lib/libiconv.2.dylib
    0x7fff8c1d3000 -     0x7fff8c1d9fff  libmacho.dylib (800.0.0 - compatibility 1.0.0) <165514D7-1BFA-38EF-A151-676DCD21FB64> /usr/lib/system/libmacho.dylib
    0x7fff8c369000 -     0x7fff8c36bfff  com.apple.TrustEvaluationAgent (2.0 - 1) <1F31CAFF-C1C6-33D3-94E9-11B721761DDF> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff8d0bd000 -     0x7fff8d0c6ff7  libsystem_notify.dylib (80.1.0 - compatibility 1.0.0) <A4D651E3-D1C6-3934-AD49-7A104FD14596> /usr/lib/system/libsystem_notify.dylib
    0x7fff8d0c7000 -     0x7fff8d0cbfff  libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib
    0x7fff8d3fb000 -     0x7fff8d3fcff7  libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib
    0x7fff8e057000 -     0x7fff8e084fe7  libSystem.B.dylib (159.1.0 - compatibility 1.0.0) <DA79E5BA-BBA3-3768-AAD8-B34BA877EF03> /usr/lib/libSystem.B.dylib
    0x7fff8e9bc000 -     0x7fff8e9c2ff7  libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib
    0x7fff8e9ed000 -     0x7fff8e9f4fff  libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <0AB51EE2-E914-358C-AC19-47BC024BDAE7> /usr/lib/system/libcopyfile.dylib
    0x7fff8ea99000 -     0x7fff8eb9bfff  libxml2.2.dylib (10.3.0 - compatibility 10.0.0) <AFBB22B7-07AE-3F2E-B88C-70BEEBFB8A86> /usr/lib/libxml2.2.dylib
    0x7fff8ef49000 -     0x7fff8f055fef  libcrypto.0.9.8.dylib (49.0.0 - compatibility 0.9.8) <96BA2B42-4E11-33A9-84A5-31757F131A83> /usr/lib/libcrypto.0.9.8.dylib
    0x7fff8f4fe000 -     0x7fff8f509ff7  libc++abi.dylib (14.0.0 - compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14> /usr/lib/libc++abi.dylib
    0x7fff904b3000 -     0x7fff904bdff7  liblaunch.dylib (392.39.0 - compatibility 1.0.0) <8C235D13-2928-30E5-9E12-2CC3D6324AE2> /usr/lib/system/liblaunch.dylib
    0x7fff909d9000 -     0x7fff90a4fff7  libc++.1.dylib (28.4.0 - compatibility 1.0.0) <A24FC3DA-4FFA-3DD2-9DCC-2B8D1B3BF97C> /usr/lib/libc++.1.dylib
    0x7fff90be8000 -     0x7fff90bedfff  libcache.dylib (47.0.0 - compatibility 1.0.0) <1571C3AB-BCB2-38CD-B3B2-C5FC3F927C6A> /usr/lib/system/libcache.dylib
    0x7fff90e3c000 -     0x7fff9103efff  libicucore.A.dylib (46.1.0 - compatibility 1.0.0) <0176782F-9526-3905-813A-7A5676EC2C86> /usr/lib/libicucore.A.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 15155
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=61.1M resident=31.6M(52%) swapped_out_or_unallocated=29.5M(48%)
Writable regions: Total=17.4M written=152K(1%) resident=284K(2%) swapped_out=0K(0%) unallocated=17.1M(98%)

REGION TYPE                      VIRTUAL
===========                      =======
MALLOC                             9396K
MALLOC guard page                    16K
STACK GUARD                        56.0M
Stack                              8192K
VM_ALLOCATE                           4K
__DATA                             1296K
__LINKEDIT                         49.1M
__TEXT                             12.0M
__UNICODE                           544K
shared memory                        12K
===========                      =======
TOTAL                             136.1M

list valid APPIDs

It would be helpful if ifuse could list the APPIDs that are valid for mounting. I am having trouble running ideviceinstaller, and I feel that ifuse should try to offer this crucial functionality itself.

Link error: ifuse/src/ifuse.c:734: undefined reference to `instproxy_client_options_set_return_attributes'

Building on Debian 8.7.

libimobiledevice-dev, libfuse-dev, and libplist-dev are all installed:

libfuse-dev: 2.9.3-15+deb8u2
libimobiledevice-dev: 1.1.6+dfsg-3.1
libplist-dev: 1.11-3

autogen.sh emits no errors, just the banner with make instructions. However, the linker gives the following error when linking ifuse.o:

ifuse/src/ifuse.c:734: undefined reference to `instproxy_client_options_set_return_attributes'
collect2: error: ld returned 1 exit status

As far as I can tell, 'instproxy_client_options_set_return_attributes' is a function in libimobiledevice4, which is installed (being a dependency for the dev package).

It seems like maybe there's an -l flag missing somewhere? Unfortunately I am not very brilliant when it comes to tracking down build issues for projects that use autotools...

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.