Swift Plugins: Speeding Up Project Builds
summary
Explains how to use Swift Package plugins (Swift Package plugins introduced in 2022) to speed up project builds by integrating code-generation and formatting helpers such as SwiftFormat, SwiftGen, Sourcery, Needle and Prefire. Describes what Swift Plugins are, the different kinds, and shows that running these helpers via plugins can reduce a build step from about 1m30s to around 5s. Notes that plugins work with both Swift Package Manager and Xcode 14.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 2:32Speaker background
- 5:02Slow build problem
- 7:55Optimization goal
- 10:03Parallelization and modularity
- 12:51Swift plugins
- 16:01Plugin benefits
- 18:54Swift plugin limitations
- 22:10Sourcery plugin example
- 27:56Plugin integration
- 28:18Plugins vs scripts
- 31:55Optimization results
- 33:06Q&A
related talks
46mGenerating Code and Other Mischief with Swift Package Manager Plugins
33mScaling Swift Development
44mSwift Packages - Dependency Management of the Future
01h 03mSwift Tools for Software Crafting 2024
21mUnlock the Potential of Swift Code Generation
48mSwiftPM — Frameworks Instead of Coffee
36mBuilding Swift Packages in VSCode
29mSwift Scripting in Practice
