Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app communicate with an app running in OSX via usb cable connection

Does iOS SDK provide a way to let iOS app talk to app running in OSX/Windows via usb cable connection? Or, socket is the only option?

like image 419
icespace Avatar asked Dec 31 '25 22:12

icespace


1 Answers

If you want to interact with an OS X program from iOS via USB, the PeerTalk lib seems to provide a convenient way to do so (without having to join the MFi program).

According to the github page, 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).

It also

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. [...]

like image 120
Geotti Avatar answered Jan 02 '26 13:01

Geotti