Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode showing warnings as errors

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.enter image description here

like image 914
odyth Avatar asked Feb 24 '11 03:02

odyth


People also ask

How do I fix Xcode warnings?

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.

How do I ignore a warning in Swift?

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).


1 Answers

Try to override this setting on the Target level, rather than Project's.

like image 77
bioffe Avatar answered Sep 25 '22 00:09

bioffe