From a687d1d16faee9a0e088e81e7005563ede32446f Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Wed, 26 Aug 2026 10:02:38 -0700 Subject: [PATCH] Remove the MPS backend from the SwiftPM package The MPS backend is being removed from the runtime, so this template must stop asking for it. The release job fills one `__SHA256___` placeholder per framework that was actually built and uploaded. Once MPS is no longer built, nothing substitutes `__SHA256_backend_mps__`, and the published manifest would carry the literal placeholder text as a checksum plus a download URL for an archive that was never uploaded. That failure would be quiet and wide. The manifest still parses, so nothing complains at generation time, and SwiftPM downloads every binary target during resolution rather than only the ones a project uses. So every consumer of the package would fail to resolve it, not only projects that wanted MPS. Test Plan: Ran the release job's substitution steps against this template using exactly the framework list that remains after MPS is removed from the runtime build. Before this change, two placeholders were left unsubstituted (`__SHA256_backend_mps__` and `__SHA256_backend_mps_debug__`), and the resulting manifest still parsed, which is what makes the failure quiet. After this change no placeholder is left, the generated manifest parses, and it declares 16 products and 18 binary targets with no reference to MPS and no unsubstituted checksum. Every wrapper target still has its matching stub directory, and no stub directory is left orphaned. --- .Package.swift/backend_mps/dummy.swift | 0 .Package.swift/backend_mps_debug/dummy.swift | 0 Package.swift.template | 9 --------- 3 files changed, 9 deletions(-) delete mode 100644 .Package.swift/backend_mps/dummy.swift delete mode 100644 .Package.swift/backend_mps_debug/dummy.swift diff --git a/.Package.swift/backend_mps/dummy.swift b/.Package.swift/backend_mps/dummy.swift deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/.Package.swift/backend_mps_debug/dummy.swift b/.Package.swift/backend_mps_debug/dummy.swift deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/Package.swift.template b/Package.swift.template index ccf29f5dd17..e83c9384651 100644 --- a/Package.swift.template +++ b/Package.swift.template @@ -46,15 +46,6 @@ let products = deliverables([ "sqlite3", ], ], - "backend_mps": [ - "sha256": "__SHA256_backend_mps__", - "sha256" + debug_suffix: "__SHA256_backend_mps_debug__", - "frameworks": [ - "Metal", - "MetalPerformanceShaders", - "MetalPerformanceShadersGraph", - ], - ], "backend_xnnpack": [ "sha256": "__SHA256_backend_xnnpack__", "sha256" + debug_suffix: "__SHA256_backend_xnnpack_debug__",