Commit c0b5ac53 authored by Peter Ryszkiewicz's avatar Peter Ryszkiewicz

[XCConfigHelper] Added the ability to inhibit warnings for swift in pod targets.

parent 462372ba
......@@ -284,7 +284,11 @@ module Pod
def self.add_language_specific_settings(target, xcconfig)
if target.uses_swift?
build_settings = {
'OTHER_SWIFT_FLAGS' => '$(inherited) ' + quote(%w(-D COCOAPODS)),
'OTHER_SWIFT_FLAGS' => [
'$(inherited)',
quote(%w(-D COCOAPODS)),
(quote(["-suppress-warnings"]) if target.try(:inhibit_warnings?) || false),
].compact.join(' '),
}
xcconfig.merge!(build_settings)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment