New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: add an option to "pod lib lint" so that it compiles in Debug mode #9686
Comments
It may have been discussed in the past..I think the reason for that is that pods are meant to be published and ensure that they can be released for Release configuration. Why not use other means to test that like https://github.com/square/cocoapods-generate to produce a workspace and invoke |
I could support such a feature. While the Release config is important for the final app, the developer clients of source pods typically use them in both Debug and Release configurations. While |
Admittedly, I did not know about Anyway, the point of my suggestion was to have a way to get all the validations that |
Can I ask for some guidance on how to continue? With what looks to me like a "dunno" and a +1, should I provide the PR? If so, what should the option be called? |
For the option name, how about the specific @dnkoutso Would such a PR get merged? |
Closing as #9760 was merged - this will be released in 1.10 👍 |
I would like to propose that
pod lib lint
gets an option to specify which configuration to build. Right now, buildingRelease
is hardcoded in validator.rb, and that should remain the default. Allowing for a command line option likepod lib lint --configuration=Debug
or maybe simplypod lib lint --debug
would allow users to specify compiling in Debug mode.The reason for this request is that I'm running my CI builds on a system that is metered by CPU minutes, and where Mac CPU minutes are worth 10 times as much as a "regular" minute. Thus, optionally speeding up linting not only provides for faster feedback, it is also significantly cheaper.
Initial tests show that linting times would improve significantly: one of the pods I'm maintaining takes ~5 minutes to lint using Release, and only ~1min 20s using Debug.
If this proposal is accepted, I can provide a PR on short notice.
The text was updated successfully, but these errors were encountered: