title: Swift flags not working
body: <p>I'm developing an app that I wan't to make in a free version with an ad banner and a paid version without an ad banner.</p>
  
  <p>My idea is to use an #if statement with a flag to indicate when to display the ad banner.</p>
  
  <p>What I've done is the following:</p>
  
  <p>Created two targets one for the paid version and one for the free version.
  Created a flag for the free version target like this:</p>
  
  <p><img src="https://i.stack.imgur.com/vCaIP.png" alt="Other Swift Flags"></p>
  
  <p>In the <code>viewDidLoad</code> method I added the following code:</p>
  
  <pre><code>    #if FREE
      bannerView = GADBannerView(adSize: kGADAdSizeSmartBannerPortrait)
      self.view.addSubview(bannerView)
      bannerView.frame = CGRect(x: 0.0, y: self.view.frame.size.height - bannerView.frame.size.height, width: bannerView.frame.size.width, height: bannerView.frame.size.height)
      bannerView.adUnitID = ...
      bannerView.rootViewController = self
      bannerView.delegate = self
      bannerView.load(GADRequest())
      #endif
  </code></pre>
  
  <p>When I choose the free version and run the code it won't show the ad banner. Any help is appreciated, thanks.</p>