linking updates

This commit is contained in:
2026-06-01 20:38:04 -07:00
parent 1f20fcab20
commit e903196639
70 changed files with 195 additions and 9596 deletions
+4 -9
View File
@@ -46,7 +46,7 @@ The package vends three products:
| Product | Kind | Use |
|---|---|---|
| `Lyrebird` | dynamic library | Core framework — Generators, Synthesizers, engine, drivers. |
| `Lyrebird` | library (static) | 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). |
@@ -64,16 +64,11 @@ To build against a local clone instead of the remote, use a path dependency:
The scaffolder (below) does this automatically with `--lyrebird-path`.
### The dynamic-library note
### Linkage 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:
The consumer-facing `Lyrebird` product uses **automatic linkage** — SwiftPM/Xcode link it **statically** into your target. No dynamic framework is produced, so adding Lyrebird needs **no special build settings**: no `disable-library-validation` entitlement, no `SWIFT_USE_INTEGRATED_DRIVER` override. It just links.
```xml
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
```
then clean-build (⇧⌘K). The generated Xcode-project templates already do this; the workspace also sets `SWIFT_USE_INTEGRATED_DRIVER = NO` and `parallelizeBuildables = NO`.
> Internally the package also vends a second product, `LyrebirdDynamic` (`type: .dynamic`), used **only** by the bundled `LiveCompile/` live-coding sub-package — it needs a shared dylib so live-compiled snippets and the host resolve to one copy of every class. You never reference `LyrebirdDynamic` as an external consumer; ignore it.
---