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
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 inCReactorFFI — 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.