通过USB电缆在iOS应用和Mac应用之间交换数据 [英] Exchange data between iOS app and Mac app through USB cable

查看:136
本文介绍了通过USB电缆在iOS应用和Mac应用之间交换数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一种方式,通过电缆在我自己的iOS应用程序和我自己的OS X应用程序之间交换数据。
我知道有一些框架要连接到设备从Mac应用程序,像iExplore这样的应用程序可以从设备导入和导出文件。



只要通过电缆,数据就以哪种方式交换并不重要。它可以使用文件系统,或者如果我可以通过连接或甚至使用第三方硬件获得设备与Mac相同的网络。
如果它使用私有API,或者设备需要越狱,则仅供内部使用。



提前感谢。 p>

重要信息:该解决方案不能提供任何无线,无线网络,无蓝牙,无蜂窝网络共享,数据交换应该在飞行模式下与设备一起工作。这是主要要求。
它必须相对较快。我想交换小包装,小于1 kB每隔几秒钟。发送和接收之间的延迟应尽可能小,1秒是可接受的最长延迟。

解决方案

https://bitbucket.org/tristero/ipodaccessframework 可以将文件放入应用程序私有文档目录,前提是您知道其应用程序包ID。


I'm looking for a way to exchange data between my own iOS app and my own OS X application through a cable. I know there have to be frameworks to connect to the device from inside a Mac application, apps like iExplore can import and export files from the device.

It doesn't matter in which way the data is exchanged as long as it's through a cable. It may use the filesystem, or if I can get the device on the same network as the Mac through a connection or even use 3rd party hardware. It doesn't matter if it uses private APIs or if the device needs a jailbreak, it is for internal use only.

Thanks in advance.

IMPORTANT: the solution can't feature anything wireless, no wifi, no bluetooth, no cellular tethering, the data exchange should work even with the device in airplane mode. This is the main requirement. And it has to be relatively fast. I want to exchange small packages less than 1 kB once every few seconds. The delay between send and receive should be as little as possible, 1 second is the longest acceptable delay.

解决方案

Take a look at https://bitbucket.org/tristero/ipodaccessframework which can get/put files into an applications private document directory, provided you know its application bundle id.

这篇关于通过USB电缆在iOS应用和Mac应用之间交换数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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