Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 548137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:02:51+00:00 2026-05-13T11:02:51+00:00

We have a development environment with a lot of different settings for our sandbox

  • 0

We have a development environment with a lot of different settings for our sandbox instances, staging servers, and production environment.

In our iphone code, we keep these settings organized in plists.

Anyone have references to best practices for managing the swapping out of plists based on the current environment? Without having to manually change files, or worry about committing development environment changes to the repository? Ideally it would just be a build argument switch or something.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:02:51+00:00Added an answer on May 13, 2026 at 11:02 am

    I’ve answered a related question few hours ago (iPhone – Switching between local and production environment settings).

    Put this code where you need to use the configuration based on the mode (debug/release) = (development/production).

    The best place to put it is on the “ProjectName”_Prefix.pch file.

    #ifndef __OPTIMIZE__ // __OPTIMIZE__ is not enabled, it means that the active config is Debug/Development, so here you have to put your code for development mode
    
    // For example
    #define SERVER_URL @"http://my.test.server/something"
    #define PLIST_NAME @"developmentSettings"
    
    #else //__OPTIMIZE__ is defined, so put here your production code
    
    // For example
    #define SERVER_URL @"http://my.production.server/something"
    #define PLIST_NAME @"productionSettings"
    
    #endif // __OPTIMIZE__

    Cheers,
    VFN

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At my company, we have tiered environment for our web applications (development, staging, production).
In our environment, we have 32-bit and 64-bit machines for development. In VS 2010,
I am working within an intranet environment. We have both a production and development
we have a mixed development environment using ASP.NET MVC and Ruby on Rails. We
I have to set up a Qt development environment for my GUI class. I
In the software development environment where I work we have a group of developers
Does anybody have any advice on working in a Date Driven Development environment? Essentially,
I have a serious issue with crystal reports. when run in my development environment
Windows resources have a FileVersion and a ProductVersion. In native development environment(eg. Win32 app,
I have my checked my environment.rb config.time_zone = 'Prague' Nothing in development.rb regarding time

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.