gpt4 book ai didi

iOS 应用程序通过 USB 电缆连接与在 OSX 中运行的应用程序通信

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:32:45 24 4
gpt4 key购买 nike

iOS SDK 是否提供一种方法让 iOS 应用程序通过 USB 电缆连接与在 OSX/Windows 中运行的应用程序通信?或者,套接字是唯一的选择?

最佳答案

如果你想通过 USB 与 iOS 中的 OS X 程序交互,PeerTalk lib 似乎提供了一种方便的方法(无需加入 MFi 程序)。

根据github页面,PeerTalk

Provides you with USB device attach/detach events and attached device's info

Can connect to TCP services on supported attached devices (e.g. an iPhone), bridging the communication over USB transport

Offers a higher-level API (PTChannel and PTProtocol) for convenient implementations.

[is] Tested and designed for libdispatch (aka Grand Central Dispatch).

也是

has successfully been released on both the iOS and OS X app store.

A great example is Duet Display which is a fantastic piece of software allowing you to use your iDevice as an extra display for your Mac using the Lightning or 30-pin cable. [...]

关于iOS 应用程序通过 USB 电缆连接与在 OSX 中运行的应用程序通信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9868153/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com