yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator
MIT License
626 stars 146 forks source link

Distribute executable with cocoapods #262

Open felginep opened 3 years ago

felginep commented 3 years ago

It would be nice to distribute the swaggen executable via cocoapods like this is done for swiftlint for example

rogerluan commented 3 years ago

I second this. Are there any plans to do this @yonaskolb ? 🙏 Or am I missing something in the setup instructions? I don't want to install via brew because I want to set the version I'm installing, and via SPM I don't get access to the binary AFAICT 🤔

So what I've done with other dependencies (e.g. SwiftLint, SwiftFormat) is just use CocoaPods to control the version we're installing (to make sure it's in git scm, that the version can be rollbacked, everyone is on the same version, etc), following good practices of https://ios-factor.com/dependencies

I really appreciate any input here 🙏

rogerluan commented 3 years ago

Moreover, I'm more than happy to open a PR with a podspec, but the key factor here is whether the maintainers of the project will update push the update to cocoapods on every new release 😁 unlike SPM, cocoapods is not a fully distributed system haha 🙈