title: Condition #if DEBUG else if PRODUCTION not working in Swift
body: <p>I am trying to use different environments for my application but facing issues doing it.
  It's not the case that <code>debug</code> is not working the case is none of the variables are working.</p>
  
  <p>I am attaching a screenshot which will make it easier to understand what is happening.</p>
  
  <p>I am not able to access any of the environments.</p>
  
  <p>I ran this code in <code>viewDidLoad</code> of initial view controller of my application and last <code>else</code> condition gets executed.</p>
  
  <pre><code>#if DEBUG
      print("Environment is debug")
      #elseif debug
      print("Environment is debug")
      #elseif Debug
      print("Environment is Debug")
      #elseif RELEASE
      print("Release")
      #elseif PRODUCTION
      print("Environment is production")
      #elseif PROD
      print("Environment is PROD")
      #else
      print("Environment is can't find")
  #endif
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ApLzS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ApLzS.png" alt="io"></a></p>
  
  <p>Adding few more images for better clarity regarding schemes and Xcode settings.</p>
  
  <p><a href="https://i.stack.imgur.com/pTE1H.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pTE1H.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/gqwq2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gqwq2.png" alt="enter image description here"></a></p>