Skip to content
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

Add an option to fail builds on warnings #476

Open
YANOUSHek opened this issue Mar 2, 2017 · 3 comments
Open

Add an option to fail builds on warnings #476

YANOUSHek opened this issue Mar 2, 2017 · 3 comments

Comments

@YANOUSHek
Copy link

This is not exactly an issue but a missing feature. I'd like to set up my Xcode so that any message from tailor fails the build (even a warning). Can't find an option to do this.

Can we add this?

@adityatrivedi
Copy link
Member

adityatrivedi commented Mar 6, 2017

@YANOUSHek, is --max-severity the option you are looking for?

@YANOUSHek
Copy link
Author

@adityatrivedi nope, this does not allow to fail the build when there's only a warning detected by tailor.

Setting it to error [...] also fails the build in Xcode, if any errors are reported

With max-severity set to warning, all violation messages are warnings and the Xcode build will never fail.

There's no option to make any message (no matter if it's a warning or error) fail the Xcode build.

@adityatrivedi
Copy link
Member

Got it, thanks for clarifying the enhancement you’re looking for. Ideally Xcode’s “treat warnings as errors” would allow you to do exactly that, but it seems to only work for compiler warnings and not Build Phase Run Script output. We envision this being a separate command-line option. Our team is pretty time constrained at the moment, a pull request to add a --strict flag would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants