<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">Hi all-</p>
<p dir="auto">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 <em>really</em> 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. </p>
<p dir="auto">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?</p>
<p dir="auto">Thanks,</p>
<p dir="auto">Ron</p>
</div>
</div>
</body>
</html>