title: Preprocessor Macro for target not working
body: <p>I added a “Preprocessor Macro” <code>TEST=1</code> to my Xcode target for all build configurations.</p>
  <p>Was expecting I could now use it like this:</p>
  <pre class="lang-swift prettyprint-override"><code>#if TEST
  print(&quot;testing&quot;)
  #else
  print(&quot;not testing&quot;)
  #endif
  </code></pre>
  <p>When running the target the compiler always uses <code>print(&quot;not testing&quot;)</code> though.</p>
  <p>I also tried adding a “User-Defined Setting” <code>OTHER_SWIFT_FLAG</code> <code>-DTEST</code> as well as adding <code>-DTEST</code> to “Other Linker Flags”. With the same result.</p>
  <p>What am I doing wrong?</p>