以编程方式从PC/Mac读取iPhone文件 [英] Reading iPhone files from PC / Mac programmatically

查看:398
本文介绍了以编程方式从PC/Mac读取iPhone文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用USB电缆连接iPhone时,诸如iPhone Explorer之类的应用程序可以显示Mac OS X(甚至在非越狱设备上)上每个已安装的iPhone应用程序的内容.我正在尝试做类似的事情,以编程方式从iPhone应用程序的文件夹中复制一些文件.

Applications like iPhone Explorer can show the contents for each installed iPhone application on Mac OS X (even on non-jailbroken devices) when iPhone is connected using USB-cable. I'm trying to do something similar, programmatically copy some files from my iPhone app's folder.

我已经对使用iTunes框架构建的开源框架/产品进行了一些实验,例如iPhoneBrowser和MobileDevice Library.我可以连接到iPhone,现在的问题是如何枚举Apps文件夹中的项目? iPhoneBrowser或MobileDevice Library不支持或提供任何简单的方法.即使将我的应用程序路径硬编码到iPhoneBrowser时,它仍然拒绝显示该文件夹. iPhone Explorer可以在同一台设备上读取该文件夹而没有任何麻烦,因此绝对有可能.

I have done some experiments with open-source frameworks/products built to use iTunes-framework, like iPhoneBrowser and MobileDevice Library. I can connect to iPhone, now the problem is how to enumerate Apps folder items? iPhoneBrowser or MobileDevice Library don't support or provide any easy way for that. Even when hardcoding my application path to iPhoneBrowser it still refuses to display the folder. iPhone Explorer can read the folder without any trouble on the very same device, so it is definitely possible.

第二个问题是获取应用程序的路径,在每台设备上,它们具有不同的路径并带有一些哈希数字文件夹名称.如何解密"路径,以便我可以在每台设备上访问我的应用程序文件夹?

Second problem is getting path to apps, on each device they have different path with some hash number folder names. How to 'decrypt' the paths so that I can access my app folder on every device?

推荐答案

该应用程序枚举使用其他协议,您可能会在此

the app enumerate use another protocol, you may find some in this https://github.com/phildrip/fruitstrap

这篇关于以编程方式从PC/Mac读取iPhone文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆