PVUI package graph is unresolvable — no PVUI target can be built or tested via SwiftPM
Summary
swift build / swift test fail for the entire PVUI package before any target is selected. Consequence: PVUIBaseTests, PVSwiftUITests, PVUIKitTests, PVSwiftUISnapshotTests and friends cannot run anywhere — not locally, not in CI.
This is why SPM Test shows skipping for PVUI work: PVUI isn't in the matrix, and it can't be added until this is fixed.
Two stacked failures
1. Stale Prefire plugin product name
error: 'pvui': product 'PrefirePlugin' required by package 'pvui' target
'PVSwiftUISnapshotTests' not found in package 'Prefire'.PVUI/Package.swift declares .plugin(name: "PrefirePlugin", package: "Prefire"), but the pinned Prefire (2.10.0, revision 172a7f0a95) ships PrefireTestsPlugin and PrefirePlaybookPlugin — the products were renamed upstream after the from: "2.1.0" floor. Verified in .build/checkouts/Prefire/Package.swift.
Likely fix: PrefireTestsPlugin (the target generates PrefireTests.generated.swift).
2. macOS deployment-target mismatches (~12 errors)
Fixing (1) exposes a cascade:
error: the library 'PVLookup' requires macos 12.0, but depends on the product
'PVPrimitives' which requires macos 14.0Same shape for PVEmulatorCore, PVCoreLoader, PVCoreAudio, PVJIT, PVShaders, OpenVGDB, libretrodb, ShiraGame, TheGamesDB, PVLookupTypes, JITManager. They declare macOS 12 / 10.13 while depending on products requiring macOS 14.
Why it went unnoticed
The Xcode workspace never resolves this graph — Prefire doesn't appear in the workspace's Package.resolved at all — so the app builds fine and the rot is invisible unless you run SwiftPM directly against PVUI.
Why it matters
PVUIBase has no type-checking in CI short of the full simulator archive build. Two concrete near-misses while working on #3612:
entry.uncompressedSize(ZIPFoundation) isUInt64; comparing it to anIntwouldn't compile. Caught by hand.- A call to
SecTaskCreateFromSelfin a simulator branch — that symbol doesn't exist in the iOS SDK. Caught by review on #3646.
swiftc -parse catches neither (syntax only). Restoring swift build/swift test for PVUI would give these modules a real gate, and let PVUI join the SPM matrix.
Suggested order
- Correct the Prefire plugin product name
- Align the macOS platform declarations across the sibling manifests
- Add
PVUIto theALLlist inspm-changed(.github/workflows/agent-validation.yml)
Related: #2571 (screenshot automation, which owns the Prefire snapshot target).
Source: Provenance-Emu/Provenance