管理 iDevice 上的文件
有谁知道像 iPhoneExplorer 这样的程序如何管理在 iDevice 上列出/添加/删除文件?
我想在 Cocoa Touch 应用程序中做类似的事情(但更基本)。
Does anyone know how programs like iPhoneExplorer manage to list/add/remove files on an iDevice?
I would like to do something similar (but more basic) in a Cocoa Touch application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从技术上讲,它不是 Apple 批准的™方法,因此不打算将其放入 App Store。但这是可能的。首先,从
/System/Library/PrivateFrameworks
导入 MobileDevice 框架。然后使用 MobileDevice 框架的逆向工程标头:http ://code.google.com/p/zipphone/source/browse/trunk/ZiPhone/MobileDevice.h
它包含与连接的 iOS 设备通信所需的所有方法。
还有一个更容易使用的 C++ 包装器,特别是在首先检测设备时。它还包括专门用于越狱的方法,但它们不是必需的。
http://code.google.com /p/independence/source/browse/trunk/libPhoneInteraction/PhoneInteraction.cpp?r=323
It's technically not an Apple-approved™ method, so don't plan on putting this in the App Store. But it is possible. First, import the MobileDevice framework from
/System/Library/PrivateFrameworks
. Then use the reverse-engineered header for the MobileDevice framework:http://code.google.com/p/ziphone/source/browse/trunk/ZiPhone/MobileDevice.h
It includes all the methods necessary to communicate with an attached iOS device.
There's also a C++ wrapper for it that's a bit easier to use, especially for detecting the device in the first place. It also includes methods specifically for jailbreaking, but they're not required.
http://code.google.com/p/independence/source/browse/trunk/libPhoneInteraction/PhoneInteraction.cpp?r=323