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 7929387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:03:34+00:00 2026-06-03T20:03:34+00:00

I have a project which can differ according to different environments, so the project

  • 0

I have a project which can differ according to different environments, so the project is exactly the same, only some URL’s change. Normally I have my work environment where I access my dummy web services, and then when there is the need to starting using the client’s web services, I just want to rapidly switch those URL’s. To achieve that, my initial idea was to have different plist files according to each web services end points (the client can have multiple URL’s: pre production, testing, production). So:

  1. Is this the best option I have? Have different plist for each web services endpoints? (again the project is exactly the same, only the endpoints are different)

  2. Does it make sense to create a new target for each different
    environment? Or am I able to do this in the schemes of the same
    target?

  • 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-06-03T20:03:40+00:00Added an answer on June 3, 2026 at 8:03 pm

    According to how many parameters you need to change you could it with a macro, eg.

    #define _DEBUG_MODE
      NSString endpoiunt = @"foo";
    #elseif
      NSString endpoiunt = @"foo";
    #endif
    

    Then you can easily attach a compiler flag for the debug scheme in which you declare the macro without worries on having to different targets.

    If your prefer to keep a .plist file you can easily use the same approach but change the file name instead that hardocidng the endpoint. But you’ll have both plists copied in the package unless using two targets (I guess it is possible even to conditionally include files in copying phase but not sure how to do it though)

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

Sidebar

Related Questions

I have a Django project. Given a url, how can I know which view
I have a project which can only be deployed on a server running .NET
I have a project which I can exclude some of libraries from linker and
In my project, I have created a code snippet which can be copied and
I have a legacy project using Rails 2.3.5 but I can't find with which
I have a WCF visual studio project, which contains many SVC files. Can I
I have a project which exposes object model to use by different types of
I have a Xaml file which is used in a project which can be
I have a project which I can deploy to 4 sites from within VS2010,
So I have a project - which I guess can be considered a relatively

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.