My project contains both .c and .m files. The Application is not completely localized. Method invocations in .m files llike this:
[myButton setTitle: @"out of range"];
are reported as:
"User-facing text should use localized string macro"
This also creates an interesting side effect. All of the conditional statements in the same file are reported as "Assuming 'variable' is equal to constant.
For example:
if(variable == 0) is reported as an error - "Assuming 'variable' is equal 0".
Does anyone else have this problem? Can I make it stop? Should I report this to Apple as a bug?
Again, the "assuming…" is not an error, but an execution flow signpost. It means that, with the assumption of "variable == 0" made earlier, execution will go through here. That has nothing to do with whether there is a test of the value at that point.
What's happening is that at every possible bifurcation of the execution path, it's telling you which one it followed, in order to clarify how it got to the point of the error. Obviously, it's not succeeding at clarifying the flow for you.