Skip to main content
The Swift SDK is a Swift 6 package for macOS and iOS, built on the same Rust core the Python and C++ SDKs bind. Unlike the C++ SDK’s per-platform archive, it ships as one SwiftPM package: the native library travels as a binary target the package manifest already points at, so a consumer never downloads or links it by hand.

Platforms

macOS 13 rather than 11 — reactor-webrtc’s prebuilt libwebrtc goes down to macOS 11 on arm64, but its x86_64 slice needs 13, and the XCFramework lipo’s both architectures into one macOS slice. 13 is the floor that keeps Intel Macs working.

Install

Add the repository as a package dependency — the manifest, Package.swift, lives at the repository root, so this is the same URL whichever language you were looking at:
Package.swift
Target
In Xcode: File → Add Package Dependencies…, paste the URL, and select the Reactor library product.
A model name is owner/name. A bare name resolves under reactor/, so "helios" works by luck of ownership and answers 403 for anyone else’s model — write the owner out.

What SwiftPM resolves

The Reactor product is the only thing a consumer links. Behind it, the manifest pulls in CReactorFFI — a binary target over a prebuilt XCFramework carrying libreactor_ffi and libwebrtc, resolved and cached by SwiftPM like any other binary dependency. There is no separate download step and nothing to point CMake or a linker at: adding the package is the whole installation. There is no source distribution of the native library, on purpose — building it needs a Rust toolchain and a libwebrtc checkout, which is exactly what a consumer of a Swift package should not have to own.

Next

Reactor

Connecting, commands, uploads, recordings, events.

Track

Pushing frames, receiving them, publishing, pausing.

Types

ReactorStatus, ReactorError and its codes, Clip, Subscription.