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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:28:50+00:00 2026-06-12T16:28:50+00:00

We want to have multiple build targets where the only difference is either the

  • 0

We want to have multiple build targets where the only difference is either the PCH file or a preprocessor macro setting. (either way will allow us to vary preprocessor directives depending on which target we have.)

We don’t want to have to maintain several separate lists of Source files, Bundle Resources, Linked Libraries, etc, that are included.

Basically we want to have this:

  • MyApp (basetarget)
  • MyAppDev (overrides “MyApp” but with different pch/preprocessor macros)
  • MyAppQA (override as well)
  • MyAppProduction (override as well)

And we want it so we just add all our source files to “MyApp” and have a base list of preprocessor macros, plus some that are specific for each build.

Then we will have schemes that correspond and build each target:

  • MyAppDevScheme
  • MyAppQAScheme
  • MyAppProductionScheme

Is this possible with Xcode?

We would also want to use the xcodebuild command line tool in conjunction with this but that should be easy if we can do what I’ve described above.

I will be delighted if someone can explain this!

Thanks!!

  • 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-12T16:28:51+00:00Added an answer on June 12, 2026 at 4:28 pm

    Try this:

    In your project settings (Info), duplicate Release or Debug build configuration. Then adjust build settings for your target, adding different preprocessor vars, or adjusting PCH file name.

    After that you can create a Scheme for each of the configurations, so you can easily build the target you want.

    And for xcodebuild builds, just specify either -configuration or -scheme as you like.

    It’s pretty much the same way Apple recommends building for app store.

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

Sidebar

Related Questions

I have multiple targets, which I'll call Foo and Bar, in my build file.
I am working on a project with multiple targets, I have a preprocessor macro
I want to build an app and I have multiple modules stored in multiple
i have multiple Xml files, in a List<File> . What i want is to
There is any way to setup the application to have multiple targets, for example
I have multiple PCs and servers in my LAN. Now I want to build
I want to have multiple pages in google-app engine (python 2.7) and the followoing
I want to have multiple multiple choices given to user after the form submit
The Scenario: We have multiple nodes distributed geographically on which we want to have
I want to have a tree in memory, where each node can have multiple

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.