title: Different parameters in xcode builds
body: <p>I'm developing an iOS app with Swift 2 and, like most developers, I have a staging and a production environment, with different servers, URL and settings.</p>
  
  <p>I'm looking for a way to quickly switch between the two configurations as I'm developing the app.</p>
  
  <p>On Android I could use build types and flavors to solve this problem.</p>
  
  <p><strong>I've read a lot of guides</strong> around the web but all of them were in Obj-C and relied on the macro preprocessor and the #ifdef that was available in Obj-C but isn't in Swift.</p>
  
  <p>There are no clear guides on how to do this in swift and, being a total beginner, I'm not even sure where to start looking.</p>
  
  <p>To recap: what I'm looking for it's a way to switch between two configurations (ex 2 property list files) and to reference the settings contained in those configurations from my code, based on the build I've selected.</p>