# Package Manager

**URL:** https://forums.swift.org/c/development/swiftpm/6.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [About the Package Manager category](https://forums.swift.org/t/about-the-package-manager-category/12)

<div class="topic-metadata">

**Author:** [@system](https://forums.swift.org/u/system)\
**Replies:** 0\
**Last updated:** [January 18, 2018, 7:44am UTC](https://forums.swift.org/t/about-the-package-manager-category/12 "2018-01-18T07:44:46Z")

</div>

For developers to discuss the implementation of the Swift package manager. This category will accept email sent to: swift+swiftpm@forums.swift.org

---

## ["Object 0x710ae8019d90 of class \_MultiHandle deallocated with non-zero retain count 2" error when trying to install the Static Linux SDK](https://forums.swift.org/t/object-0x710ae8019d90-of-class-multihandle-deallocated-with-non-zero-retain-count-2-error-when-trying-to-install-the-static-linux-sdk/90057)

<div class="topic-metadata">

**Author:** [@Cyberbeni](https://forums.swift.org/u/Cyberbeni)\
**Replies:** 3\
**Last updated:** [November 2, 2026, 4:49pm UTC](https://forums.swift.org/t/object-0x710ae8019d90-of-class-multihandle-deallocated-with-non-zero-retain-count-2-error-when-trying-to-install-the-static-linux-sdk/90057 "2026-11-02T16:49:02Z")

</div>

Starting with 6.4.0, I am often getting this error when trying to install the Static Linux SDK. Thankfully I have a builder docker image, so it only has to succeed twice per Swift version. Here is the SafeSleepHub issue…

---

## [Xcode 16.x never finds a new Swift package when Searching All Sources](https://forums.swift.org/t/xcode-16-x-never-finds-a-new-swift-package-when-searching-all-sources/76972)

<div class="topic-metadata">

**Author:** [@timmitra](https://forums.swift.org/u/timmitra)\
**Replies:** 8\
**Last updated:** [October 29, 2026, 5:13pm UTC](https://forums.swift.org/t/xcode-16-x-never-finds-a-new-swift-package-when-searching-all-sources/76972 "2026-10-29T17:13:29Z")

</div>

I'm on a new Mac M4 using GitHub SSH, but when I try to find a Swift Package on GitHub in Xcode 16.2 (latest) the package is never found. I can load a package that I've previously used, such as AVCam. The spinner never …

---

## [Slim source distributions via SwiftPM registries: a use case for exact version matching](https://forums.swift.org/t/slim-source-distributions-via-swiftpm-registries-a-use-case-for-exact-version-matching/90155)

<div class="topic-metadata">

**Author:** [@bclee](https://forums.swift.org/u/bclee)\
**Replies:** 6\
**Last updated:** [October 28, 2026, 11:16am UTC](https://forums.swift.org/t/slim-source-distributions-via-swiftpm-registries-a-use-case-for-exact-version-matching/90155 "2026-10-28T11:16:18Z")

</div>

This is a motivating use case and a request for feedback, not an Evolution proposal for a new registry protocol, version ordering rule, or dependency override API. Motivation Swift packages sometimes contain substantial…

---

## [Expanding the power of build tool plugins to build something fun](https://forums.swift.org/t/expanding-the-power-of-build-tool-plugins-to-build-something-fun/89819)

<div class="topic-metadata">

**Author:** [@dschaefer2](https://forums.swift.org/u/dschaefer2)\
**Replies:** 9\
**Last updated:** [October 8, 2026, 4:52pm UTC](https://forums.swift.org/t/expanding-the-power-of-build-tool-plugins-to-build-something-fun/89819 "2026-10-08T16:52:55Z")

</div>

As a tools developer, it's critical I try to empathize with developers who use the tools I help create. I am probably most intrigued by game developers. My favourite influencers are game developers. They solve some of th…

---

## [Swift-Syntax Prebuilts for use in iOS apps at run-time?](https://forums.swift.org/t/swift-syntax-prebuilts-for-use-in-ios-apps-at-run-time/89600)

<div class="topic-metadata">

**Author:** [@ZevEisenberg](https://forums.swift.org/u/ZevEisenberg)\
**Replies:** 13\
**Last updated:** [October 5, 2026, 1:41pm UTC](https://forums.swift.org/t/swift-syntax-prebuilts-for-use-in-ios-apps-at-run-time/89600 "2026-10-05T13:41:27Z")

</div>

It seems, per \[Preview\] Swift-Syntax Prebuilts for Macros , that Swift-Syntax Prebuilts are expressly intended to allow uses for macros. If an iOS library depends on Swift-Syntax for doing things at run-time, then it see…

---

## [Generate SBOM for package dependencies of Xcode project?](https://forums.swift.org/t/generate-sbom-for-package-dependencies-of-xcode-project/89717)

<div class="topic-metadata">

**Author:** [@jzi](https://forums.swift.org/u/jzi)\
**Replies:** 5\
**Last updated:** [October 1, 2026, 10:01am UTC](https://forums.swift.org/t/generate-sbom-for-package-dependencies-of-xcode-project/89717 "2026-10-01T10:01:48Z")

</div>

Is there a way to repurpose the Software Bill of Materials (SBOM) Generation for Swift Package Manager that shipped with Swift 6.4 in Xcode 27 to generate an SBOM for the package dependencies of an Xcode project?

---

## [BuildToolPlugin 'Multiple commands produce ...' error when embedding wachOS app in iOS app target](https://forums.swift.org/t/buildtoolplugin-multiple-commands-produce-error-when-embedding-wachos-app-in-ios-app-target/71437)

<div class="topic-metadata">

**Author:** [@liamnichols](https://forums.swift.org/u/liamnichols)\
**Replies:** 5\
**Last updated:** [September 30, 2026, 1:37pm UTC](https://forums.swift.org/t/buildtoolplugin-multiple-commands-produce-error-when-embedding-wachos-app-in-ios-app-target/71437 "2026-09-30T13:37:15Z")

</div>

I'm an author of a tool called xcstrings-tool that offers a BuildToolPlugin to generate Swift source code for accessing localized strings that are declared in an Xcode Strings Catalog. While BuildTool Plugins have some …

---

## [\[Preview\] Swift-Syntax Prebuilts for Macros](https://forums.swift.org/t/preview-swift-syntax-prebuilts-for-macros/80202)

<div class="topic-metadata">

**Author:** [@dschaefer2](https://forums.swift.org/u/dschaefer2)\
**Replies:** 152\
**Last updated:** [September 24, 2026, 11:55am UTC](https://forums.swift.org/t/preview-swift-syntax-prebuilts-for-macros/80202 "2026-09-24T11:55:08Z")

</div>

The introduction of macros to Swift has given developers the ability to create more expressive libraries that can be distributed as a Swift package. Macros can greatly improve the developer ergonomics making Swift packag…

---

## [Swift test + RealityKit custom component decode mismatch (has == true, typed decode == nil) — minimal repro](https://forums.swift.org/t/swift-test-realitykit-custom-component-decode-mismatch-has-true-typed-decode-nil-minimal-repro/84937)

<div class="topic-metadata">

**Author:** [@mesqueeb](https://forums.swift.org/u/mesqueeb)\
**Replies:** 5\
**Last updated:** [September 19, 2026, 7:17pm UTC](https://forums.swift.org/t/swift-test-realitykit-custom-component-decode-mismatch-has-true-typed-decode-nil-minimal-repro/84937 "2026-09-19T19:17:37Z")

</div>

Hi all, I’m seeing what looks like a mismatch specifically when running tests via SwiftPM CLI (swift test), and I’m not sure whether this should be tracked as SwiftPM, Swift Testing, or RealityKit. I made a minimal rep…

---

## [Unsupported flags in systemLibrary pkg-config files](https://forums.swift.org/t/unsupported-flags-in-systemlibrary-pkg-config-files/89523)

<div class="topic-metadata">

**Author:** [@torarnv](https://forums.swift.org/u/torarnv)\
**Replies:** 1\
**Last updated:** [September 17, 2026, 7:22pm UTC](https://forums.swift.org/t/unsupported-flags-in-systemlibrary-pkg-config-files/89523 "2026-09-17T19:22:07Z")

</div>

The Qt pkg-config files ship as e.g: prefix=/Users/torarne/build/qt/6.x-prefix-no-fw/install exec\_prefix=${prefix} bindir=${prefix}/bin libexecdir=${prefix}/libexec libdir=${prefix}/lib includedir=${prefix}/include Nam…

---

## [Intermittent error with symlinks in package registry zip file](https://forums.swift.org/t/intermittent-error-with-symlinks-in-package-registry-zip-file/88406)

<div class="topic-metadata">

**Author:** [@Cyberbeni](https://forums.swift.org/u/Cyberbeni)\
**Replies:** 1\
**Last updated:** [September 17, 2026, 8:08am UTC](https://forums.swift.org/t/intermittent-error-with-symlinks-in-package-registry-zip-file/88406 "2026-09-17T08:08:35Z")

</div>

I'm trying to create a package registry mirror of https://github.com/nicklockwood/SwiftFormat/ with the prebuilt binary removed. After I changed my Package.swift file to use the new source, I get the following error duri…

---

## [Running executables directly from URL](https://forums.swift.org/t/running-executables-directly-from-url/89404)

<div class="topic-metadata">

**Author:** [@jjrscott](https://forums.swift.org/u/jjrscott)\
**Replies:** 3\
**Last updated:** [September 8, 2026, 12:37pm UTC](https://forums.swift.org/t/running-executables-directly-from-url/89404 "2026-09-08T12:37:28Z")

</div>

Greetings. Is there a way to pull a package and execute its commands directly from the URL, taking into account dependancy rules, eg: swift run --package-url https://github.com/jjrscott/echo --up-to-next-minor-from 0.1 …

---

## [Allowing plugins to generate mixed-language sources](https://forums.swift.org/t/allowing-plugins-to-generate-mixed-language-sources/89396)

<div class="topic-metadata">

**Author:** [@ahti](https://forums.swift.org/u/ahti)\
**Replies:** 1\
**Last updated:** [September 6, 2026, 2:40pm UTC](https://forums.swift.org/t/allowing-plugins-to-generate-mixed-language-sources/89396 "2026-09-06T14:40:04Z")

</div>

With the SE-0541 PR merged, is there anything that would speak against allowing plugins to generate C files into Swift targets when experimentalCGen is enabled? I put an agent to the task and for my rather simple use cas…

---

## [Why does it take so long to build and test SwiftPM on the CI?](https://forums.swift.org/t/why-does-it-take-so-long-to-build-and-test-swiftpm-on-the-ci/86898)

<div class="topic-metadata">

**Author:** [@Finagolfin](https://forums.swift.org/u/Finagolfin)\
**Replies:** 6\
**Last updated:** [August 10, 2026, 6:07pm UTC](https://forums.swift.org/t/why-does-it-take-so-long-to-build-and-test-swiftpm-on-the-ci/86898 "2026-08-10T18:07:26Z")

</div>

This has been bothering me lately, as it now takes the same amount of time to build, test, and install SwiftPM as to build, test, and install the Swift compiler itself, just over an hour on linux. Here are the latest num…

---

## [SwiftPM - Possible to build individual targets in Xcode?](https://forums.swift.org/t/swiftpm-possible-to-build-individual-targets-in-xcode/78812)

<div class="topic-metadata">

**Author:** [@finebel](https://forums.swift.org/u/finebel)\
**Replies:** 5\
**Last updated:** [August 1, 2026, 7:18pm UTC](https://forums.swift.org/t/swiftpm-possible-to-build-individual-targets-in-xcode/78812 "2026-08-01T19:18:44Z")

</div>

I have a Xcode project that has multiple local Swift Packages. Consider the following Package.swift file as an example: let package = Package( name: "SomeFeature", products: \[ .library(name: "FooFeature"…

---

## [Multi-language library](https://forums.swift.org/t/multi-language-library/88196)

<div class="topic-metadata">

**Author:** [@eueu](https://forums.swift.org/u/eueu)\
**Replies:** 8\
**Last updated:** [July 23, 2026, 9:42pm UTC](https://forums.swift.org/t/multi-language-library/88196 "2026-07-23T21:42:55Z")

</div>

I'm writing some software on Linux and using Swift Package Manager 6.2 where I have two things: Project A is a library with C, C++, and Swift code, let's say the Package.swift targets are: TC, TCpp and TS (which depe…

---

## [Multiple Major Versions of a Package in SwiftPM: Opening the Discussion](https://forums.swift.org/t/multiple-major-versions-of-a-package-in-swiftpm-opening-the-discussion/86317)

<div class="topic-metadata">

**Author:** [@bripeticca](https://forums.swift.org/u/bripeticca)\
**Replies:** 13\
**Last updated:** [July 20, 2026, 12:20pm UTC](https://forums.swift.org/t/multiple-major-versions-of-a-package-in-swiftpm-opening-the-discussion/86317 "2026-07-20T12:20:23Z")

</div>

One of the more frequently requested capabilities in SwiftPM is the ability to depend on multiple major versions of the same package within a single project. Today, if two parts of your dependency graph require incompati…

---

## [Is \`module.modulemap\` required for C/Objc targets?](https://forums.swift.org/t/is-module-modulemap-required-for-c-objc-targets/88332)

<div class="topic-metadata">

**Author:** [@Frizlab](https://forums.swift.org/u/Frizlab)\
**Replies:** 5\
**Last updated:** [July 16, 2026, 8:01pm UTC](https://forums.swift.org/t/is-module-modulemap-required-for-c-objc-targets/88332 "2026-07-16T20:01:06Z")

</div>

I have an issue with swift run --repl when using Swift 6.4 beta (swift-driver version: 1.168.4 Apple Swift version 6.4 (swiftlang-6.4.0.25.4 clang-2100.3.25.1) – Target: arm64-apple-macosx27.0.0). The problem happens wh…

---

## [Submodule not included in \`swift package archive-source\` output](https://forums.swift.org/t/submodule-not-included-in-swift-package-archive-source-output/88270)

<div class="topic-metadata">

**Author:** [@Cyberbeni](https://forums.swift.org/u/Cyberbeni)\
**Replies:** 0\
**Last updated:** [July 14, 2026, 8:05am UTC](https://forums.swift.org/t/submodule-not-included-in-swift-package-archive-source-output/88270 "2026-07-14T08:05:33Z")

</div>

I have a package that wraps a C library in a way that's easy for automated cve scanners to understand (it is added as a git submodule). If I create a zip file with swift package archive-source --output package.zip then t…

---

## [Invalid registry source archive checksum](https://forums.swift.org/t/invalid-registry-source-archive-checksum/88219)

<div class="topic-metadata">

**Author:** [@Cyberbeni](https://forums.swift.org/u/Cyberbeni)\
**Replies:** 0\
**Last updated:** [July 11, 2026, 12:50pm UTC](https://forums.swift.org/t/invalid-registry-source-archive-checksum/88219 "2026-07-11T12:50:12Z")

</div>

Swift 6.3.3, Linux Mint 22.3 x86\_64 Project/branch: Colors the old tags backed up. When I run the command swift package --cache-path ./.spm-cache --only-use-versions-from-resolved-file resolve, I get the error invalid …

---

## [SwiftPM: 2x faster resolves, 3x smaller disk footprint](https://forums.swift.org/t/swiftpm-2x-faster-resolves-3x-smaller-disk-footprint/85750)

<div class="topic-metadata">

**Author:** [@Sarunas](https://forums.swift.org/u/Sarunas)\
**Replies:** 36\
**Last updated:** [June 28, 2026, 7:37am UTC](https://forums.swift.org/t/swiftpm-2x-faster-resolves-3x-smaller-disk-footprint/85750 "2026-06-28T07:37:20Z")

</div>

Swift Package Manager: 2x faster resolves, 3x smaller disk footprint At Ordo One, we have a server-side Swift project with 48 dependencies (soto, swift-protobuf, swift-nio, gRPC, etc.), and as the dependency graph grew w…

---

## [Static Linux SDK regression on 6.4? Duplicate symbols](https://forums.swift.org/t/static-linux-sdk-regression-on-6-4-duplicate-symbols/87685)

<div class="topic-metadata">

**Author:** [@sebsto](https://forums.swift.org/u/sebsto)\
**Replies:** 5\
**Last updated:** [June 25, 2026, 8:32pm UTC](https://forums.swift.org/t/static-linux-sdk-regression-on-6-4-duplicate-symbols/87685 "2026-06-25T20:32:56Z")

</div>

Hello, I ran into what looks like a Static Linux SDK regression on 6.4 and filed swiftlang/swift#90196. Short version: a package that links two vendored BoringSSL copies (swift-nio-ssl + swift-crypto) fails to statical…

---

## [Can SwiftPM not default to low macOS versions?](https://forums.swift.org/t/can-swiftpm-not-default-to-low-macos-versions/83441)

<div class="topic-metadata">

**Author:** [@MahdiBM](https://forums.swift.org/u/MahdiBM)\
**Replies:** 40\
**Last updated:** [June 18, 2026, 12:38pm UTC](https://forums.swift.org/t/can-swiftpm-not-default-to-low-macos-versions/83441 "2026-06-18T12:38:00Z")

</div>

Edit: previous title of tis post was: “Can SwiftPM not support low macOS versions?“ This whole issue occurred to me when I was investigating this GitHub issue of mine in swift-nio: I think it’d be nice for SwiftPM to…

---

## [Looking for external reviewer for the package registry implementation of Forgejo](https://forums.swift.org/t/looking-for-external-reviewer-for-the-package-registry-implementation-of-forgejo/87417)

<div class="topic-metadata">

**Author:** [@Cyberbeni](https://forums.swift.org/u/Cyberbeni)\
**Replies:** 0\
**Last updated:** [June 16, 2026, 11:37am UTC](https://forums.swift.org/t/looking-for-external-reviewer-for-the-package-registry-implementation-of-forgejo/87417 "2026-06-16T11:37:32Z")

</div>

Anyone competent enough in Golang from the @build-and-packaging-workgroup to review my changes?

---

## [Xcode 26: Unable to find module dependency](https://forums.swift.org/t/xcode-26-unable-to-find-module-dependency/80516)

<div class="topic-metadata">

**Author:** [@jmjauer](https://forums.swift.org/u/jmjauer)\
**Replies:** 37\
**Last updated:** [June 10, 2026, 10:25pm UTC](https://forums.swift.org/t/xcode-26-unable-to-find-module-dependency/80516 "2026-06-10T22:25:40Z")

</div>

With Xcode 26 beta I get the following error in my project for all my local packages: Unable to find module dependency This happens only when I build for macOS. The project builds without any issues with Xcode 16. Edi…

---

## [Supporting \`safe.bareRepository = explicit\` in Swift Package Manager](https://forums.swift.org/t/supporting-safe-barerepository-explicit-in-swift-package-manager/86336)

<div class="topic-metadata">

**Author:** [@allevato](https://forums.swift.org/u/allevato)\
**Replies:** 10\
**Last updated:** [June 9, 2026, 10:31pm UTC](https://forums.swift.org/t/supporting-safe-barerepository-explicit-in-swift-package-manager/86336 "2026-06-09T22:31:36Z")

</div>

Open issue: Git config setting \`safe.bareRepository=explicit\` can break dependency resolution · Issue #8068 · swiftlang/swift-package-manager · GitHub Git added the configuration option safe.bareRepository = explicit as…

---

## [How to define fallback paths for package resolution?](https://forums.swift.org/t/how-to-define-fallback-paths-for-package-resolution/87248)

<div class="topic-metadata">

**Author:** [@vitamin](https://forums.swift.org/u/vitamin)\
**Replies:** 2\
**Last updated:** [June 9, 2026, 9:58pm UTC](https://forums.swift.org/t/how-to-define-fallback-paths-for-package-resolution/87248 "2026-06-09T21:58:47Z")

</div>

I'm developing a project that includes two local Swift packages, which define static library targets. One of these packages depends on the other one. Presently it imports it, via .dependency("../../..")... and it just wo…

---

## [Metal support](https://forums.swift.org/t/metal-support/87016)

<div class="topic-metadata">

**Author:** [@AlexSedykh](https://forums.swift.org/u/AlexSedykh)\
**Replies:** 6\
**Last updated:** [June 1, 2026, 3:37pm UTC](https://forums.swift.org/t/metal-support/87016 "2026-06-01T15:37:01Z")

</div>

So, when will Metal support a package manager? The use case is very simple. We have a C (C++) module that contains a header file with a core structure used in Swift targets and shaders. module CoreStructures { heade…

---

## [Xcodebuild wants to use confidential information stored in “github.com” in your keychain during CI build](https://forums.swift.org/t/xcodebuild-wants-to-use-confidential-information-stored-in-github-com-in-your-keychain-during-ci-build/86819)

<div class="topic-metadata">

**Author:** [@patricks](https://forums.swift.org/u/patricks)\
**Replies:** 3\
**Last updated:** [May 20, 2026, 7:33am UTC](https://forums.swift.org/t/xcodebuild-wants-to-use-confidential-information-stored-in-github-com-in-your-keychain-during-ci-build/86819 "2026-05-20T07:33:06Z")

</div>

Hi, I am running xcodebuild through Fastlane in a macOS CI environment and I constantly get this popup: xcodebuild wants to use your confidential information stored in "github.com" in your keychain. This blocks the…

[Next page](https://forums.swift.org/c/development/swiftpm/6.md?page=1)
