title: Best way to organize API base URL for different environment in Xcode
body: <p>We have 3 environments <code>Dev, Stage and Prod</code> for our API. I have 3 targets and schemes for 3 environments setup in my Xcode which have different builds, code signing, profiles and plist.</p>
  
  <p>How do I do the same for API base URL? right now I have all in 1 prefix file. Because it is 1 project so all 3 targets are using the same file and I have to change the comment out every time I build for different environment.</p>
  
  <pre><code>//DEV
  #define SERVER_URL @"http://api.dev.com/api/"
  //STAGE
  #define SERVER_URL @"http://api.stage.com/api/"
  //PROD
  #define SERVER_URL @"http://api.prd.com/api/"
  </code></pre>
  
  <p>What is the best way to organize API base URL for different target environment in Xcode? </p>
  
  <p>Thanks,</p>