With Swift 5.6, Xcode and the Swift Package Manager gained a new product type, plugins, allowing developers to extend their build process with new build commands or processing steps.
Here are two WWDC 2022 sessions that go into more detail on what plugins are and how you can create them:
What use are plugins? Rather than link to some examples directly, let’s use the latest feature of the Swift Package Index to find out! You can now filter search results based on whether packages include a plugin.
This feature has been a group effort by several contributors! Joe Heck first suggested it would be a helpful feature, and Marin Todorov took up the challenge and implemented it! We’re so happy to accept this contribution which means we have support for plugins just a few weeks after Apple officially introduced them at WWDC.
Thanks to open source contributions, our search is improving!