# \#swiftpm

**URL:** https://forums.swift.org/tag/swiftpm/410.md

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

---

## [SE-0560: Build configuration conditionals for target dependencies](https://forums.swift.org/t/se-0560-build-configuration-conditionals-for-target-dependencies/90315)

<div class="topic-metadata">

**Author:** [@FranzBusch](https://forums.swift.org/u/FranzBusch)\
**Replies:** 2\
**Last updated:** [October 28, 2026, 9:44pm UTC](https://forums.swift.org/t/se-0560-build-configuration-conditionals-for-target-dependencies/90315 "2026-10-28T21:44:59Z")

</div>

Hello, Swift community! The review of SE-0560: Build configuration conditionals for target dependencies begins now and runs through November 11, 2026. Reviews are an important part of the Swift evolution process. All r…

---

## [\[Pitch\] Scalable \`embedInCode\` resources using object files](https://forums.swift.org/t/pitch-scalable-embedincode-resources-using-object-files/89370)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Larralde](https://forums.swift.org/u/Gonzalo_Larralde)\
**Replies:** 14\
**Last updated:** [September 18, 2026, 3:48am UTC](https://forums.swift.org/t/pitch-scalable-embedincode-resources-using-object-files/89370 "2026-09-18T03:48:44Z")

</div>

Hi all, I'd like to pitch a more scalable representation for resources embedded in code by SwiftPM. I have a prototype implemented across SwiftPM and Swift Build, and I'd appreciate feedback on the API and the build-sys…

---

## [\[Pitch\] Product-Builder plugin capability for SwiftPM](https://forums.swift.org/t/pitch-product-builder-plugin-capability-for-swiftpm/88620)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Larralde](https://forums.swift.org/u/Gonzalo_Larralde)\
**Replies:** 10\
**Last updated:** [August 27, 2026, 1:38am UTC](https://forums.swift.org/t/pitch-product-builder-plugin-capability-for-swiftpm/88620 "2026-08-27T01:38:59Z")

</div>

Hi all, I’d like to pitch a new SwiftPM plugin capability for constructing the final artifacts of a package product. The motivating examples are embedded firmware images, application bundles, installable archives, co…

---

## [\[Pitch\] SwiftPM build configuration conditionals for target dependencies](https://forums.swift.org/t/pitch-swiftpm-build-configuration-conditionals-for-target-dependencies/88981)

<div class="topic-metadata">

**Author:** [@dmhts](https://forums.swift.org/u/dmhts)\
**Replies:** 6\
**Last updated:** [August 24, 2026, 9:52am UTC](https://forums.swift.org/t/pitch-swiftpm-build-configuration-conditionals-for-target-dependencies/88981 "2026-08-24T09:52:03Z")

</div>

Hello Swift community, This pitch re-proposes the unimplemented part of SE-0273: Package Manager Conditional Target Dependencies. The original proposal, accepted in 2019, intended to introduce two conditional mechanisms…

---

## [\[Rejected\] SE-0534: Opt-in Exact Matching for Version Identifiers](https://forums.swift.org/t/rejected-se-0534-opt-in-exact-matching-for-version-identifiers/88571)

<div class="topic-metadata">

**Author:** [@FranzBusch](https://forums.swift.org/u/FranzBusch)\
**Replies:** 2\
**Last updated:** [August 9, 2026, 9:36am UTC](https://forums.swift.org/t/rejected-se-0534-opt-in-exact-matching-for-version-identifiers/88571 "2026-08-09T09:36:48Z")

</div>

Hello Swift community, The review of SE-0534: Opt-in Exact Matching for Version Identifiers with Build Metadata ran from June 26, 2026 through July 9, 2026. The Ecosystem Steering Group has decided to reject the proposa…

---

## [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"…

---

## [\[Review\] SE-0534: Opt-in exact matching for version identifiers with build metadata](https://forums.swift.org/t/review-se-0534-opt-in-exact-matching-for-version-identifiers-with-build-metadata/87815)

<div class="topic-metadata">

**Author:** [@FranzBusch](https://forums.swift.org/u/FranzBusch)\
**Replies:** 22\
**Last updated:** [July 27, 2026, 2:56pm UTC](https://forums.swift.org/t/review-se-0534-opt-in-exact-matching-for-version-identifiers-with-build-metadata/87815 "2026-07-27T14:56:43Z")

</div>

Hello, Swift community! The review of SE-0534: Opt-in exact matching for version identifiers with build metadata begins now and runs through July 6, 2026. Reviews are an important part of the Swift evolution process. A…

---

## [\[Pitch\] SwiftPM Build Performance Debugging Options](https://forums.swift.org/t/pitch-swiftpm-build-performance-debugging-options/87369)

<div class="topic-metadata">

**Author:** [@owenv](https://forums.swift.org/u/owenv)\
**Replies:** 14\
**Last updated:** [July 26, 2026, 5:36pm UTC](https://forums.swift.org/t/pitch-swiftpm-build-performance-debugging-options/87369 "2026-07-26T17:36:11Z")

</div>

Hello, I wanted to share a brief pitch to add two new flags to SwiftPM for understanding build performance of packages. These are tools which are currently available in nightly snapshots in hidden/experimental form and …

---

## [\[Pitch\] Disjoint Package Dependency Version Ranges](https://forums.swift.org/t/pitch-disjoint-package-dependency-version-ranges/88483)

<div class="topic-metadata">

**Author:** [@CrownedPhoenix](https://forums.swift.org/u/CrownedPhoenix)\
**Replies:** 2\
**Last updated:** [July 24, 2026, 8:42pm UTC](https://forums.swift.org/t/pitch-disjoint-package-dependency-version-ranges/88483 "2026-07-24T20:42:49Z")

</div>

\[Pitch\] Disjoint Package Dependency Version Ranges Authors: Jairon Terrero Status: Pitch Implementation: Add union-of-versions package dependency requirement by CrownedPhoenix · Pull Request #10339 · swiftlang/swift-pac…

---

## [Pitch: Compilation Caching Support in SwiftPM](https://forums.swift.org/t/pitch-compilation-caching-support-in-swiftpm/88079)

<div class="topic-metadata">

**Author:** [@owenv](https://forums.swift.org/u/owenv)\
**Replies:** 12\
**Last updated:** [July 24, 2026, 3:01pm UTC](https://forums.swift.org/t/pitch-compilation-caching-support-in-swiftpm/88079 "2026-07-24T15:01:35Z")

</div>

Hi all, I have a relatively short pitch to add support for configuring clang and swiftc's compilation caching features via SwiftPM: SwiftPM Support for Compilation Caching Proposal: SE-NNNN Authors: Owen Voorhees Imp…

---

## [Best way to support multiple swiftsyntax versions](https://forums.swift.org/t/best-way-to-support-multiple-swiftsyntax-versions/86961)

<div class="topic-metadata">

**Author:** [@floormatgen](https://forums.swift.org/u/floormatgen)\
**Replies:** 3\
**Last updated:** [May 29, 2026, 3:06pm UTC](https://forums.swift.org/t/best-way-to-support-multiple-swiftsyntax-versions/86961 "2026-05-29T15:06:14Z")

</div>

I was writing a utility package for one of my projects for the swift standard library, but got a major version conflict for swift-syntax (603 & 602) with one of my dependencies. As SwiftPM doesn't support multiple versio…

---

## [Exploring fixing a user-experience pain point with Swift - docs and requiring an explicit package dependency to support its easy use](https://forums.swift.org/t/exploring-fixing-a-user-experience-pain-point-with-swift-docs-and-requiring-an-explicit-package-dependency-to-support-its-easy-use/85594)

<div class="topic-metadata">

**Author:** [@Joseph\_Heck](https://forums.swift.org/u/Joseph_Heck)\
**Replies:** 3\
**Last updated:** [March 27, 2026, 4:30pm UTC](https://forums.swift.org/t/exploring-fixing-a-user-experience-pain-point-with-swift-docs-and-requiring-an-explicit-package-dependency-to-support-its-easy-use/85594 "2026-03-27T16:30:17Z")

</div>

I feel the developer experience for creating and viewing documentation associated with Swift packages has a severe stumbling point in that the developer-friendly commands — "generate-documentation" and "preview-documenta…

---

## [Automate macro expansion to inline code](https://forums.swift.org/t/automate-macro-expansion-to-inline-code/84394)

<div class="topic-metadata">

**Author:** [@keeshux](https://forums.swift.org/u/keeshux)\
**Replies:** 9\
**Last updated:** [February 4, 2026, 1:38pm UTC](https://forums.swift.org/t/automate-macro-expansion-to-inline-code/84394 "2026-02-04T13:38:17Z")

</div>

Correct me if I'm wrong, but it seems to me that Swift Macros run hand in hand with SwiftPM. Now, I have a project whose cross-platform build process relies heavily on CMake, so I'm evaluating a different option than mak…

---

## [Importing Swift types exposed in an Objective-C API back into Swift](https://forums.swift.org/t/importing-swift-types-exposed-in-an-objective-c-api-back-into-swift/83492)

<div class="topic-metadata">

**Author:** [@Timofey\_Solonin](https://forums.swift.org/u/Timofey_Solonin)\
**Replies:** 1\
**Last updated:** [December 4, 2025, 4:42pm UTC](https://forums.swift.org/t/importing-swift-types-exposed-in-an-objective-c-api-back-into-swift/83492 "2025-12-04T16:42:56Z")

</div>

Hey. I was wondering about resurfacing a Swift type in an Objective-C API: how intentional is it that it works in the compiler, and whether there are any plans to support/deprecate this behavior in one of SwiftPM's build…

---

## [Is it possible to codesign CLI applications as part of \`swift run\`?](https://forums.swift.org/t/is-it-possible-to-codesign-cli-applications-as-part-of-swift-run/83478)

<div class="topic-metadata">

**Author:** [@kouhai](https://forums.swift.org/u/kouhai)\
**Replies:** 5\
**Last updated:** [December 1, 2025, 3:39pm UTC](https://forums.swift.org/t/is-it-possible-to-codesign-cli-applications-as-part-of-swift-run/83478 "2025-12-01T15:39:06Z")

</div>

I’m trying to work on a CLI which uses various macOS entitlements for OS APIs. Is it possible to integrate the codesign CLI into the Swift PM build process such that “it just works” when I’m using swift run or swift buil…

---

## [Cross-compiling for Android with CMake](https://forums.swift.org/t/cross-compiling-for-android-with-cmake/82924)

<div class="topic-metadata">

**Author:** [@keeshux](https://forums.swift.org/u/keeshux)\
**Replies:** 8\
**Last updated:** [November 25, 2025, 8:46pm UTC](https://forums.swift.org/t/cross-compiling-for-android-with-cmake/82924 "2025-11-25T20:46:08Z")

</div>

Hi, I'm reviving this: To bring up more or less the same question. Is there a solid way to cross-compile for Android with a Swift SDK without using SwiftPM? If not, is there any work towards it? So far, I couldn't f…

---

## [SwiftPM in Xcode can't find include directories for a C library on Homebrew](https://forums.swift.org/t/swiftpm-in-xcode-cant-find-include-directories-for-a-c-library-on-homebrew/83016)

<div class="topic-metadata">

**Author:** [@CTMacUser](https://forums.swift.org/u/CTMacUser)\
**Replies:** 5\
**Last updated:** [November 12, 2025, 9:19am UTC](https://forums.swift.org/t/swiftpm-in-xcode-cant-find-include-directories-for-a-c-library-on-homebrew/83016 "2025-11-12T09:19:25Z")

</div>

Using Xcode 26.0.1 on an 2020 M1 MacBook Air. Trying out linking to a C library imported to my computer via Homebrew. When I compile my package, it immediately fails because it can’t find the C library’s header files. H…

---

## [About static linking and Swift SDKs](https://forums.swift.org/t/about-static-linking-and-swift-sdks/81520)

<div class="topic-metadata">

**Author:** [@keeshux](https://forums.swift.org/u/keeshux)\
**Replies:** 2\
**Last updated:** [August 6, 2025, 2:30pm UTC](https://forums.swift.org/t/about-static-linking-and-swift-sdks/81520 "2025-08-06T14:30:32Z")

</div>

Hello, Recently, I gave a try to the so-called Linux Static SDK, that in turn sent me down the rabbit hole of Swift SDKs and the swift-sdk-generator repository. My questions: If I were to create my custom musl-based …

---

## [Swift --version not matching swift package --version](https://forums.swift.org/t/swift-version-not-matching-swift-package-version/80585)

<div class="topic-metadata">

**Author:** [@deverman](https://forums.swift.org/u/deverman)\
**Replies:** 3\
**Last updated:** [July 14, 2025, 2:47pm UTC](https://forums.swift.org/t/swift-version-not-matching-swift-package-version/80585 "2025-07-14T14:47:03Z")

</div>

Hello I was having trouble building a command line program and I found that my swift and package manager version seem to be different. I'm running macOS Sequoia 15.5. I have uninstalled all the references to Xcode and sw…

---

## [Make SwiftPM run XCTest and Testing tests in parallel by default?](https://forums.swift.org/t/make-swiftpm-run-xctest-and-testing-tests-in-parallel-by-default/78348)

<div class="topic-metadata">

**Author:** [@Finagolfin](https://forums.swift.org/u/Finagolfin)\
**Replies:** 15\
**Last updated:** [March 27, 2025, 10:05pm UTC](https://forums.swift.org/t/make-swiftpm-run-xctest-and-testing-tests-in-parallel-by-default/78348 "2025-03-27T22:05:39Z")

</div>

SwiftPM has long run XCTest tests serially by default, which I usually override with the --parallel flag. However, it runs the new Testing tests in parallel by default, so if a codebase uses both, as many might be transi…

---

## [SwiftPM included with Xcode 16b3 changes plugin output folder to "destination"](https://forums.swift.org/t/swiftpm-included-with-xcode-16b3-changes-plugin-output-folder-to-destination/73220)

<div class="topic-metadata">

**Author:** [@marcprux](https://forums.swift.org/u/marcprux)\
**Replies:** 6\
**Last updated:** [March 26, 2025, 9:05pm UTC](https://forums.swift.org/t/swiftpm-included-with-xcode-16b3-changes-plugin-output-folder-to-destination/73220 "2025-03-26T21:05:14Z")

</div>

SwiftPM included as part of Xcode 16b3 has suddenly started adding a new "destination" folder to the directory hierarchy of build tool plugin outputs when run from the command-line. Files generated by our plugin are now …

---

## [What exactly does \`-c release\` do?](https://forums.swift.org/t/what-exactly-does-c-release-do/78546)

<div class="topic-metadata">

**Author:** [@c01](https://forums.swift.org/u/c01)\
**Replies:** 3\
**Last updated:** [March 15, 2025, 2:45pm UTC](https://forums.swift.org/t/what-exactly-does-c-release-do/78546 "2025-03-15T14:45:37Z")

</div>

Hi! 1: What exactly does -c release do when passed to swiftui build in a package? From looking at SPMs source briefly, I'd say things like -Xlinker -dead\_strip, -O, and -O2 (C flag, so probably with -Xcc?), but is that …

---

## [Using Core ML in a .swiftpm file](https://forums.swift.org/t/using-core-ml-in-a-swiftpm-file/76910)

<div class="topic-metadata">

**Author:** [@vbwo](https://forums.swift.org/u/vbwo)\
**Replies:** 1\
**Last updated:** [March 11, 2025, 5:10pm UTC](https://forums.swift.org/t/using-core-ml-in-a-swiftpm-file/76910 "2025-03-11T17:10:10Z")

</div>

Hi everyone, I've been struggling for a few weeks to integrate my Core ML Image Classifier model into my .swiftpm project, and I’m hoping someone can help. Here’s what I’ve done so far: I converted my .mlmodel file t…

---

## [How to use swiftPM manager different framework and core framework in a Multi-Target Xcode project](https://forums.swift.org/t/how-to-use-swiftpm-manager-different-framework-and-core-framework-in-a-multi-target-xcode-project/78291)

<div class="topic-metadata">

**Author:** [@talka123456](https://forums.swift.org/u/talka123456)\
**Replies:** 0\
**Last updated:** [March 5, 2025, 9:36am UTC](https://forums.swift.org/t/how-to-use-swiftpm-manager-different-framework-and-core-framework-in-a-multi-target-xcode-project/78291 "2025-03-05T09:36:33Z")

</div>

I have a multi-target Xcode Project where different targets depend on both a Core Framework and their own target-specific SDK Frameworks. How should I handle migrating from CocoaPods to SwiftPM for dependency management …

---

## [SwiftPM build/run error due to missing \`pkg-config\`](https://forums.swift.org/t/swiftpm-build-run-error-due-to-missing-pkg-config/77298)

<div class="topic-metadata">

**Author:** [@giik](https://forums.swift.org/u/giik)\
**Replies:** 3\
**Last updated:** [January 28, 2025, 10:49am UTC](https://forums.swift.org/t/swiftpm-build-run-error-due-to-missing-pkg-config/77298 "2025-01-28T10:49:54Z")

</div>

I am trying to build a small command line executable using the recently introduced Benchmark Package. I can build and run the binary in my package after I have added the dependency on the benchmark package: swift run -…

---

## [Bug: Compiler gets stuck on Release build](https://forums.swift.org/t/bug-compiler-gets-stuck-on-release-build/76244)

<div class="topic-metadata">

**Author:** [@Christoph](https://forums.swift.org/u/Christoph)\
**Replies:** 1\
**Last updated:** [November 27, 2024, 2:56pm UTC](https://forums.swift.org/t/bug-compiler-gets-stuck-on-release-build/76244 "2024-11-27T14:56:16Z")

</div>

Hi, I have a weird bug with Swift 6.0.2 and XCode 16.1. I have a package that compiles well a Debug build, but a Release build never finishes. It does compile with the flag -no-whole-module-optimization in Terminal sw…

---

## [SwiftPM compile multiple arch system library](https://forums.swift.org/t/swiftpm-compile-multiple-arch-system-library/75724)

<div class="topic-metadata">

**Author:** [@jayadamsmorgan](https://forums.swift.org/u/jayadamsmorgan)\
**Replies:** 2\
**Last updated:** [October 31, 2024, 9:42am UTC](https://forums.swift.org/t/swiftpm-compile-multiple-arch-system-library/75724 "2024-10-31T09:42:17Z")

</div>

Hello! My package contains a wrapper for c library "notcurses", this library was installed with homebrew both with arm version and x86\_64 version so I would have both versions of the lib. I'm trying to build my package…

---

## [Is the Swift 6 dev snapshot toolchain supposed to be using system 5.10 runtime dylibs?](https://forums.swift.org/t/is-the-swift-6-dev-snapshot-toolchain-supposed-to-be-using-system-5-10-runtime-dylibs/74593)

<div class="topic-metadata">

**Author:** [@corbeling](https://forums.swift.org/u/corbeling)\
**Replies:** 2\
**Last updated:** [September 14, 2024, 12:19am UTC](https://forums.swift.org/t/is-the-swift-6-dev-snapshot-toolchain-supposed-to-be-using-system-5-10-runtime-dylibs/74593 "2024-09-14T00:19:02Z")

</div>

I'm running macOS 14.6.1 and I installed the 2024-09-11 dev snapshot of Swift 6 from swift.org. I have TOOLCHAINS=org.swift.600202409111a in my shell's environment and I've verified that eg. swift --version gives me Appl…

---

## [GitHub repo deps from SwiftPM broken?](https://forums.swift.org/t/github-repo-deps-from-swiftpm-broken/73429)

<div class="topic-metadata">

**Author:** [@vanvoorden](https://forums.swift.org/u/vanvoorden)\
**Replies:** 0\
**Last updated:** [July 24, 2024, 7:27pm UTC](https://forums.swift.org/t/github-repo-deps-from-swiftpm-broken/73429 "2024-07-24T19:27:37Z")

</div>

All of a sudden today my package is failing to build: fatal: unable to access 'https://github.com/apple/swift-collections.git/': Could not resolve host: github.com Another package is also failing to build: fatal: unab…

---

## [\[Pitch\] The idea of built-in or default-available plugins for SwiftPM](https://forums.swift.org/t/pitch-the-idea-of-built-in-or-default-available-plugins-for-swiftpm/72873)

<div class="topic-metadata">

**Author:** [@Joseph\_Heck](https://forums.swift.org/u/Joseph_Heck)\
**Replies:** 7\
**Last updated:** [July 3, 2024, 3:32am UTC](https://forums.swift.org/t/pitch-the-idea-of-built-in-or-default-available-plugins-for-swiftpm/72873 "2024-07-03T03:32:48Z")

</div>

I'd like to discuss options on how to approach, and what would be acceptable, to enable some concept of "default available plugins" for the broader swift ecosystem. The inception for this is from Documentation, specific…

[Next page](https://forums.swift.org/tag/swiftpm/410.md?match_all_tags=true&page=1&tags%5B%5D=swiftpm)
