PeerTalk Documentation

repository·master·Indexed 25 days ago

https://github.com/rsms/peertalk

A Cocoa library for iOS and macOS that enables communication over USB by bridging communication to TCP services on attached devices via the USB transport.

Tokens
312
Snippets
1
Records
2
Agent score
36%

What's inside PeerTalk

  1. Get started with PeerTalk

    master

    To use PeerTalk, clone the repository and open peertalk.xcodeproj in Xcode 4.3 or later on OS X 10.7 or later.

    Follow these steps to verify the installation:

    1. Run Unit Tests: Select the peertalk target and run tests (Cmd+U) to ensure everything is working correctly.
    2. Run macOS Example: Select the Peertalk Example target and run (Cmd+R) to see the OS X sample application.
    3. Run iOS Simulator Example: Select the Peertalk iOS Example target for an iPhone Simulator and run (Cmd+R) to test communication between the Mac and the simulator.
    4. Run on Physical iOS Device: Connect an iPhone, iPod, or iPad, select the Peertalk iOS Example target for your connected device, and run (Cmd+R).
  2. Configure macOS sandboxed mode entitlements

    master

    If you are developing a sandboxed macOS application, you may need to add a specific entitlement to allow PeerTalk to access usbmuxd. Add the following snippet to your .entitlements file:

    <key>com.apple.security.temporary-exception.sbpl</key>
    <array>
        <string>(allow network-outbound (literal "/private/var/run/usbmuxd"))</string>
    </array>