#pragma message?

(Ron Olson) #1

Hi all-

I have an iOS project that has multiple schemes for determining which backend server to talk to (dev/staging/prod) as well as some custom text for the version label. I've been using the -D flag during compiling to invoke the right #if/#elseif/#endif pragmas in my Swift code, but I admit I'm always a bit apprehensive; is it *really* going to use the prod URL? In C++ projects I'd use a #pragma message to ensure I was truly in a #if block but that doesn't seem to work with Swift.

Is there any way to put some harmless text in the compiler output so as to assuage my fears that my compiled binary will be wrong?