# Lyrebird — Installation & Usage How to add Lyrebird to a project and scaffold the five kinds of app it supports: real-time, real-time + UI, non-real-time (offline) render, AUv3 plugin, and iOS. The package is hosted at . --- ## Requirements | Platform | OS | Xcode | Swift | |---|---|---|---| | macOS | 15+ | 16+ | 6.0 | | iOS | 18+ | 16+ | 6.0 | The macOS 15 / iOS 18 floor is hard: Lyrebird's lock-free queues use `Synchronization.Atomic`, which is unavailable earlier. --- ## Adding the package ### Swift Package Manager (`Package.swift`) ```swift // swift-tools-version: 6.0 import PackageDescription let package = Package( name: "MyPiece", platforms: [.macOS(.v15), .iOS(.v18)], dependencies: [ .package(url: "https://realizedsound.mooo.com/josh/Lyrebird", from: "1.0.0"), ], targets: [ .executableTarget( name: "MyPiece", dependencies: [ .product(name: "Lyrebird", package: "Lyrebird"), .product(name: "LyrebirdUI", package: "Lyrebird"), // only if you need the GUI module ]), ] ) ``` The package vends three products: | Product | Kind | Use | |---|---|---| | `Lyrebird` | dynamic library | Core framework — Generators, Synthesizers, engine, drivers. | | `LyrebirdUI` | library | SwiftUI parameter controls (`ParameterKnob`, scope/envelope views, `LyrebirdWindow`). | | `LyrebirdCLI` | executable | The `lyrebird` command-line tool (scaffolding, REPL). | ### In Xcode **File ▸ Add Package Dependencies…**, paste the repository URL, choose **Up to Next Major Version** from `1.0.0`, and add the `Lyrebird` (and optionally `LyrebirdUI`) products to your target. ### Local checkout (development) To build against a local clone instead of the remote, use a path dependency: ```swift .package(name: "Lyrebird", path: "/Users/me/Documents/LyrebirdII") ``` The scaffolder (below) does this automatically with `--lyrebird-path`. ### The dynamic-library note `Lyrebird` is declared `type: .dynamic` in `Package.swift`. This is a deliberate workaround for an Xcode 26 SwiftPM regression and will revert to `.static` once that is fixed. If you hit `dyld: Library not loaded` under a hardened runtime (sandboxed app or AUv3 extension), add to your entitlements: ```xml com.apple.security.cs.disable-library-validation ``` then clean-build (⇧⌘K). The generated Xcode-project templates already do this; the workspace also sets `SWIFT_USE_INTEGRATED_DRIVER = NO` and `parallelizeBuildables = NO`. --- ## The `lyrebird` CLI Project scaffolding goes through the `lyrebird` CLI. Install it once onto your `$PATH`: ```bash swift build -c release --product LyrebirdCLI cp .build/release/LyrebirdCLI /usr/local/bin/lyrebird lyrebird --version # verify ``` (From a checkout you can also use `swift run lyrebird …` without installing.) | Command | Purpose | |---|---| | `lyrebird new [--template ] [--lyrebird-path

]` | Scaffold a new project. | | `lyrebird run [--release]` | Build and run the project in the current directory. | | `lyrebird export [--to

] [--overwrite]` | Emit a standalone `SynthesizerBase` template file. | | `lyrebird install-templates [--force]` | Install the Xcode file templates (New File… ▸ Lyrebird). | | `lyrebird uninstall-templates` | Remove them. | | `lyrebird repl` | Swift REPL with `import LyrebirdSynth` available. | | `lyrebird` (no args) | Interactive `lyrebird>` shell. | Full reference: [`docs/tooling/cli-guide.md`](docs/tooling/cli-guide.md). --- ## Generating projects `lyrebird new --template