Xcode build configuration with 5.1


#1

Hey everyone,

ProJucer 5.1 adds a series of explicit warning flags to the Xcode build configuration. I would like to set the following to NO:
GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
GCC_WARN_UNUSED_FUNCTION = NO;
CLANG_WARN_COMMA = NO;
CLANG_WARN_UNREACHABLE_CODE = NO;

Is there a way to do this in ProJucer, I can’t seem to find it?

Thanks,

Geert


#2

Hi Geert,

You can set these flags in the “Custom Xcode flags” field of each build configuration in Projucer.

Cheers,
Alain


#3

Hi Alain,

How? When I add these there I get an invalid Xcode project file.

Take care,

Geert


#4

Based on the documentation, I would expect like this:

GCC_WARN_64_TO_32_BIT_CONVERSION = NO, GCC_WARN_UNUSED_FUNCTION = NO, CLANG_WARN_COMMA = NO, CLANG_WARN_UNREACHABLE_CODE = NO

However, I don’t have a machine running macOS at hand, so I cannot check right now.


#5

And yes that looks awful in the Projucer’s UI…


#6

Many thanks Alain, that worked! :slight_smile: