To disable compiler warning I go to Project -> Target -> Build Settings and add flag
-w
for specific file. This flag disables all warnings for the file.
But sometimes this flag does not work.
For example, when I run the test, I get warnings for external library Nimble (all this files I marked with the flag -w):
.../Pods/Nimble/Sources/Nimble/Matchers/MatcherProtocols.swift:15:11: 'Matcher' is deprecated: Use to Predicate instead .../Pods/Nimble/Sources/Nimble/Matchers/Predicate.swift:170:22: 'Matcher' is deprecated: Use to Predicate instead .../Pods/Nimble/Sources/Nimble/Matchers/AllPass.swift:22:27: 'Matcher' is deprecated: Use to Predicate instead .../Pods/Nimble/Sources/Nimble/Matchers/AllPass.swift:76:21: Variable 'generator' was never mutated; consider changing to 'let' constant .../Pods/Nimble/Sources/Nimble/Matchers/AsyncMatcherWrapper.swift:41:14: 'Matcher' is deprecated: Use to Predicate instead
What am I doing wrong and how to get rid of warnings for external libraries that I have no influence on?