In this line of code:
NSInteger answer = 3; NSString *s = [NSString stringWithFormat:@"%ld",answer];
In Xcode 10.3, under a debug build there is no error. Under release builds I get this error:
values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Werror,-Wformat]
I understand the why on the error, that I should also cast answer to (long), and the compiler will complain and fix the issue if I start with @"%d". But when the ld is there the compiler in debug builds keeps quiet, but in release it raises a flag.
Any ideas as to what setting would cause this to happen?
Thanks in advance!

