fixes for Swift 6 and threading concerns

This commit is contained in:
2026-06-02 12:09:44 -07:00
parent 2fa4bfd45e
commit 6d3a0930a1
327 changed files with 1596 additions and 199 deletions
+6 -13
View File
@@ -83,22 +83,17 @@ let package = Package(
// .copy preserves the directory structure exactly (Xcode discovers
// templates by .xctemplate bundle name + TemplateInfo.plist).
.copy("Resources/XcodeTemplates"),
],
// Swift 5 language mode: the LineNoise package pre-dates Swift 6 concurrency
// annotations. The CLI is a single-threaded synchronous command dispatcher —
// strict concurrency checking adds noise without safety benefit here.
swiftSettings: [.swiftLanguageMode(.v5)]
]
// Swift 6 language mode (Phase 202): inherits the swift-tools 6.0 default.
),
.target(
name: "LyrebirdUI",
dependencies: [
"LyrebirdSynth",
],
path: "Sources/LyrebirdUI",
path: "Sources/LyrebirdUI"
// SwiftUI + AppKit + Observation are system frameworks — no linkerSettings needed.
// .v5 mode: avoids Swift 6 actor-isolation diagnostics in SwiftUI/AppKit interop
// until the concurrency model for UI is fully audited (same rationale as LyrebirdCLI).
swiftSettings: [.swiftLanguageMode(.v5)]
// Swift 6 language mode (Phase 202): inherits the swift-tools 6.0 default.
),
// Phase 167 — `LyrebirdLiveCompile` (and its SwiftUI host
// `LyrebirdLiveCompileUI`) moved to the `LiveCompile/` nested SwiftPM
@@ -130,14 +125,12 @@ let package = Package(
"LyrebirdUI",
"LyrebirdSynth",
],
path: "Tests/LyrebirdUITests",
swiftSettings: [.swiftLanguageMode(.v5)]
path: "Tests/LyrebirdUITests"
),
.testTarget(
name: "LyrebirdCLITests",
dependencies: ["LyrebirdCLI"],
path: "Tests/LyrebirdCLITests",
swiftSettings: [.swiftLanguageMode(.v5)]
path: "Tests/LyrebirdCLITests"
),
]
)