-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[XCConfigHelper] Add the ability to inhibit swift warnings #5414
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
Conversation
I'm assuming I will have to add a Changelog comment, correct? |
Please, you can see the format in this PR: #5413 |
'$(inherited)', | ||
quote(%w(-D COCOAPODS)), | ||
(quote(%w(-suppress-warnings)) if target.try(:inhibit_warnings?) || false), | ||
].compact.join(' '), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not make an array var for the flags and conditionally append to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with that. Then we don't need to compact
'OTHER_SWIFT_FLAGS' => '$(inherited) ' + quote(%w(-D COCOAPODS)), | ||
} | ||
other_swift_flags = ['$(inherited)', quote(%w(-D COCOAPODS))] | ||
other_swift_flags += [quote(%w(-suppress-warnings))] if target.try(:inhibit_warnings?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be other_swift_flags << quote(%w(-suppress-warnings)) if target.inhibit_warnings?
👍 with test |
@segiddins, when I run the tests using rake, I get 46 failures, and they all look like missing double quotes, which obviously, I did not cause. They were failing even before my commits. What kind of environment do I need to get it to run properly? I am using
Also, all the unit tests pass and all the errors happen in the integration tests.
|
@pRizz don't worry about those |
It should be good now 👍 |
@mrackwitz look good to you? |
LGTM 👍 |
Bump |
🎉 |
This PR adds the ability to inhibit swift warnings for pod targets. This is related to issue 5290.
Even without my changes, many unit tests fail locally. Why is that?