I turned on the setting "Treat Warnings as Errors" used it for a while and then turned it off however warnings still build as errors. I have restarted xcode and my pc.
However, if you trust Xcode enough, you can simply follow this shortcut to to automatically fix fixable warnings. control + option + command + F or Control ⌃ + Option ⌥ + Command ⌘ + F . This will fix all the fixable errors in current scope.
If you want to disable all warnings, you can pass the -suppress-warnings flag (or turn on "Suppress Warnings" under "Swift Compiler - Warning Policies" in Xcode build settings).
Try to override this setting on the Target level, rather than Project's.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With