It would be nice if this tool supported swift package plugins so we didn't have to use a build phase to run it. Details here: https://github.com/apple/swift-package-manager/blob/main/Documentation/Plugins.md