emergetools/peertalk
PeerTalk is an iOS and Mac Cocoa library for communicating over USB.
Getting started
Suck down the code and open peertalk.xcodeproj in Xcode 4.3 or later on OS X 10.7 or later.
- Select the "peertalk" target and hit Cmd+U (Product → Test) and verify that the unit tests passed.
- Select the "Peertalk Example" target and hit Cmd+R (Product → Run). You should se a less than-pretty, standard window with some text saying it's ready. That's the OS X example app you're looking at.
- In Xcode, select the "Peertalk iOS Example" target for the iPhone Simulator, and hit Cmd+R (Product → Run). There should be some action going on now. Try sending some messages between the OS X app and the app running in the iPhone simulator.
- Connect your iOS device (iPhone, iPod or iPad) and kill the iPhone simulator and go back to Xcode. Select the "Peertalk iOS Example" target for your connected iOS device. Hit Cmd+R (Product → Run) to build and run the sample app on your device.
It should work.
Demo video: http://www.youtube.com/watch?v=kQPWy8N0mBg
<iframe width="880" height="530" src="http://www.youtube.com/embed/kQPWy8N0mBg?hd=1&rel=0" frameborder="0" allowfullscreen></iframe>
macOS sandboxed mode
In https://github.com/rsms/peertalk/issues/36#issuecomment-596450033 @Lessica suggests the following entitlement snippet made macOS give access to peertalk:
<key>com.apple.security.temporary-exception.sbpl</key>
<array>
<string>(allow network-outbound (literal "/private/var/run/usbmuxd"))</string>
</array>Package Metadata
Repository: emergetools/peertalk
Default branch: master
README: README.md