我想编写/使用一个可以访问iOS文件系统(非越狱)的开源脚本。在一个越狱设备上,我使用ssh/scp访问、从设备传输数据。目的是将iOS文件系统(例如/var/mobile/Applications/xxx-xxxx/Documents)的某些部分复制到Mac中,从一个非越狱设备,使用一些脚本。我看到像iFunBox这样的工具能够做到这一点。我想知道它成功地做到了。
我偶然发现了mobiledevice.h,但我不知道如何使用它。
而且,我更希望通过USB完成这个任务。对于越狱设备,我使用tcprelay.py来执行usb隧道。有什么可以用来做非越狱装置的吗?
发布于 2013-08-03 22:17:37
MobileDeviceManager库给我们带来了简单的文件系统操作(它是一个易于使用的Objective包装器,围绕您遇到的MobileDevice框架)。
问题是它不支持将文件从设备复制到计算机,而只支持相反的方式。因此,为了解决这个问题,我创建了一个修补程序(GitHub要点),您可以将它合并到包含的示例程序中,让它理解copyFrom命令。
发布于 2013-12-13 13:59:34
您可以安装ifuse工具,它托管在这里:https://github.com/libimobiledevice/ifuse
为了编译这个工具,您需要一组Gnu工具(make、libtool等)。
#Don't worry - clang is still default
sudo port install gcc48 NB:更新您的.bash_profile (或类似的)以包括以下内容:
#Important - this is where your compiled libs will get installed to, so we need this
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/** 这个过程的其余部分应该需要几分钟
安装fuse4x
sudo port install fuse4x构建依赖项:
签出:https://github.com/libimobiledevice/libplist,cd进入结帐,然后运行:
./autogen.sh
./configure
make
sudo make install签出:https://github.com/libimobiledevice/libusbmuxd,cd进入结帐,然后运行:
./autogen.sh
./configure
make
sudo make install签出:https://github.com/libimobiledevice/libimobiledevice,cd进入结帐,然后运行:
./autogen.sh
./configure
make
sudo make install(如果您在Linux上,您还需要在构建libusbmuxd和libimobiledevice之后安装usbmuxd。。否则,适用于Windows和OSX。。。)
现在构建iFuse:
退房:https://github.com/libimobiledevice/ifuse
./autogen.sh
./configure
make
sudo make install使用ifuse访问应用程序的文档目录:
创建一个挂载目录:
sudo mkdir -p /Volumes/myapp.app现在挂载应用程序的dir:
ifuse --container <appid> /Volumes/abced.app其中app id是在包标识符中显示的名称。。示例:
ifuse --container mycompany.ABCED.com /Volumes/abced.app/(请参阅所附图片)

https://stackoverflow.com/questions/18037591
复制相似问题