Create Your First Swift Package Command Plugin

<p>This year, Apple released a new feature for the Swift Package Manager: Swift Package Plugins. We can now write two kinds of plugins that are automatically integrated with Xcode:</p> <ul> <li>Build (and pre-build) Plugins.</li> <li>Command Plugins.</li> </ul> <p>I already talked about building plugins in a couple of articles: &ldquo;<a href="https://betterprogramming.pub/implement-your-first-swift-package-build-plugin-9835a7aded0b" rel="noopener ugc nofollow" target="_blank">Implement Your First Swift Package Build Plugin</a>&rdquo; and &ldquo;<a href="https://betterprogramming.pub/how-to-use-xcode-plugins-in-your-ios-app-13574261f210" rel="noopener ugc nofollow" target="_blank">How to Use Xcode Plugins in Your iOS App</a>&rdquo;.</p> <p>Today, I want to share with you which steps are required to create a Command Plugin. The developer experience for these plugins is not great, so I want to share also a technique to debug them.</p> <p><a href="https://betterprogramming.pub/create-your-first-swift-package-command-plugin-3f918e2e8b8e"><strong>Learn More</strong></a></p>
Tags: Command Plugin