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

  • Home
  • SEARCH
  • 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 7161449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:34:08+00:00 2026-05-28T13:34:08+00:00

Hy there I would like to have three apps depending, which are based on

  • 0

Hy there I would like to have three apps depending, which are based on the same code:

  1. MyAppDevelopment (Builds from Xcode that are deployed to the device)

  2. MyAppPreview (Beta testing)

  3. MyApp (Release)

It should be possible to have all of the three Apps installed on a device and they’d have their own icon to nicely distinguish them visually.

Now I know that I could have three different targets with their respective Info.plist file, but I would rather use Xcode’s configurations so that I don’t have to maintain three different targets. Is this possible using configurations, the problem is that the App identifier is stored in the Info.plist file, which can be defined per-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-05-28T13:34:09+00:00Added an answer on May 28, 2026 at 1:34 pm

    Using different targets for different editions of Apps provides more flexibility and lets you easily change the bundle identifier and the icon etc once you specify a different plist file per target. However, the configurations are more deeply integrated with Xcode and you can adjust any build setting per configuration.

    After some more research I figured out how to get the best of both worlds with just one target:

    • Create the desired configurations in Xcode: ProjectName > ProjectName > Info. For example:
      • Debug
      • Preview
      • Release
    • Now these three configurations are available for all the build settings.
    • The three Apps should co-exist on a device.
      I want to be able to have all three versions of the App on one device, for this all three types need a different bundle identifier. The original Identifier could be com.company.${PRODUCT_NAME:rfc1034identifier}.

      • To achieve this go to MyProject > MyApp (Target) > Build settings and click on the button (+) Add Build Setting
      • Add the new key ${APP_ID} and set the values like this and note that the release configuration should not have a suffix:

        APP_ID > 'com.company.MyApp-debug'
               > 'com.company.MyApp-preview'
               > 'com.company.MyApp'
        
      • Now in your Info.plist change the Bundle Identifier value to ${APP_ID}
    • You can do the same with the Bundle Display Name or the Icon attribute so that you can easily distinguish the app at one glance.

    • You can set Preprocessor macros for your configurations in order to be able to detect the current configuration in your code. This is done by default for the debug configuration: DEBUG=1.

    Advantages

    • Since the three Apps have their own identifier, you won’t override the latest preview build when testing the current App in Xcode.
    • Nicely integrated into Xcode and offers a high flexibility
      All build settings can now individually be changed per configuration
    • New configurations can easily be added by cloning existing configurations within Xcode
    • No need for additional targets
      Targets are IMHO better for completely different artifacts like libraries or testing targets that have a different code base.
    • The configurations can be used in code if required.
    • Different Service URLS etc. can be used for different environments. See this great post (Thanks to Jonah!) that shows how to do this using a special plist file.
    • No use of any hacky scripts which are hard to maintain

    Disadvantages

    • With using targets it would be possible to exclude some frameworks from a type of App. So for example you could exclude some analytics library from the debug edition of your App.

    • Update: You can’t use substitutions like com.company.${PRODUCT_NAME:rfc1034identifier} for User defined Build Settings. So you’ll have to write out the bundle whole bundle identifier in this case.

    • Update: Some settings which should be made “configuration aware” move to the User-Defined section of the Build Settings, which might feel unusual for some developers.

    The result

    Result http://i.minus.com/jbwPgEiBra39dL.png

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

Sidebar

Related Questions

There are some products for which I would like to have a special checkout
Is there any open source Object Database available? I would like to have a
I have the following three tables: alt text http://img16.imageshack.us/img16/5499/linqtosqlquery.jpg With LinqToSql I would like
I have a pretty complex database schema and would like to know if there
Is there anyway I can create a not in clause like I would have
I have a custom listPreference I would like to display a list of apps
I have 2 iphones. I would like to record live video from one, and
I have two classes that I would like to merge into a composite. These
I have an array with 16 elements. I would like to evaluate these to
I have a class that implements multiple interfaces. I would like to register these

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.