How do I enable Warnings as errors in Xcode? I see the setting for VS in the projucer, but not for Xcode. Am I not seeing it or is it not there?
There are two ways of doing this:
- adding
-Werror
to the “Extra Compiler Flags” field of the Xcode exporter - adding
GCC_TREAT_WARNINGS_AS_ERRORS=YES
to the “Custom Xcode Flags” field of the Xcode configurations
I hope this helps.
2 Likes