# \#build-plugin

**URL:** https://forums.swift.org/tag/build-plugin/767.md

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

---

## [\[Pitch\] Package Manager Conditional Plugin](https://forums.swift.org/t/pitch-package-manager-conditional-plugin/86217)

<div class="topic-metadata">

**Author:** [@clive819](https://forums.swift.org/u/clive819)\
**Replies:** 10\
**Last updated:** [June 14, 2026, 7:40pm UTC](https://forums.swift.org/t/pitch-package-manager-conditional-plugin/86217 "2026-06-14T19:40:17Z")

</div>

Proposal: SE-NNNN Authors: Clive Liu Review Manager: TBD Status: Awaiting review Introduction This proposal extends the plugins parameter of SwiftPM target declarations to support platform and trait conditions, using t…

---

## [\[Pitch\] SwiftPM Plugins - Explicit BuildTool Sandbox Permissions](https://forums.swift.org/t/pitch-swiftpm-plugins-explicit-buildtool-sandbox-permissions/68963)

<div class="topic-metadata">

**Author:** [@nholloh](https://forums.swift.org/u/nholloh)\
**Replies:** 10\
**Last updated:** [March 31, 2026, 8:18pm UTC](https://forums.swift.org/t/pitch-swiftpm-plugins-explicit-buildtool-sandbox-permissions/68963 "2026-03-31T20:18:33Z")

</div>

Introduction Since there are multiple topics (1, 2) where people have stated interest in network access for Swift Package Manager Plugins, I wanted to bring them together and draft a first pitch for a discussion. Motiva…

---

## [Avoiding Plugin Execution in a Linked Swift Package During Top-Level Package Builds](https://forums.swift.org/t/avoiding-plugin-execution-in-a-linked-swift-package-during-top-level-package-builds/80828)

<div class="topic-metadata">

**Author:** [@nareshreddywf](https://forums.swift.org/u/nareshreddywf)\
**Replies:** 0\
**Last updated:** [July 1, 2025, 12:51pm UTC](https://forums.swift.org/t/avoiding-plugin-execution-in-a-linked-swift-package-during-top-level-package-builds/80828 "2025-07-01T12:51:51Z")

</div>

I am working on an iOS project using Xcode 16.0 that leverages multiple Swift packages. Among these, I have a Shared Package that contains reusable code and is linked to several top-level feature packages (e.g., VideoPla…

---

## [For in-build plugins adding new files to the Target's source is expensive (plugin and tool-commands all run fresh)](https://forums.swift.org/t/for-in-build-plugins-adding-new-files-to-the-targets-source-is-expensive-plugin-and-tool-commands-all-run-fresh/69610)

<div class="topic-metadata">

**Author:** [@carlynorama](https://forums.swift.org/u/carlynorama)\
**Replies:** 1\
**Last updated:** [March 6, 2025, 11:06am UTC](https://forums.swift.org/t/for-in-build-plugins-adding-new-files-to-the-targets-source-is-expensive-plugin-and-tool-commands-all-run-fresh/69610 "2025-03-06T11:06:49Z")

</div>

My in build plugin runs from scratch every time a new file is created in Target's source directory even if it doesn't affect the plugin's input list. About the plugin: Using swift package init --type build-tool-plugin …

---

## [File-based routing for Vapor apps](https://forums.swift.org/t/file-based-routing-for-vapor-apps/63563)

<div class="topic-metadata">

**Author:** [@gonzalonunez](https://forums.swift.org/u/gonzalonunez)\
**Replies:** 0\
**Last updated:** [March 7, 2023, 5:38pm UTC](https://forums.swift.org/t/file-based-routing-for-vapor-apps/63563 "2023-03-07T17:38:30Z")

</div>

I wrote a small Swift Package plugin that enables file-based routing for Vapor apps. It works by generating code at build-time that registers routes like you would in any normal Vapor app.

---

## [Generate symlinks within a SPM package of objective-c code using build plugin](https://forums.swift.org/t/generate-symlinks-within-a-spm-package-of-objective-c-code-using-build-plugin/62321)

<div class="topic-metadata">

**Author:** [@Devarshi](https://forums.swift.org/u/Devarshi)\
**Replies:** 5\
**Last updated:** [February 6, 2023, 5:08pm UTC](https://forums.swift.org/t/generate-symlinks-within-a-spm-package-of-objective-c-code-using-build-plugin/62321 "2023-02-06T17:08:35Z")

</div>

I have a SPM package of objective-c code. In order to expose its public interfaces I need to generate symlinks within include folder. I noticed that when I include the generated symlinks within the repo of package it gi…
