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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:56:08+00:00 2026-05-16T17:56:08+00:00

I have two targets in my iPhone application: one for my actual app, and

  • 0

I have two targets in my iPhone application: one for my actual app, and another for my unit testing. I added a run script to my main application’s target so that when I compile, the script will generate Doxygen documentation. The problem is that the script runs when I am compiling and running my unit testing target. Is there a way to make xcode execute my script only when compiling/running my main application’s target, and not my unit testing 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-16T17:56:09+00:00Added an answer on May 16, 2026 at 5:56 pm

    Your build script phase has access to the full set of environment from build to build.
    Make sure you check “Show Environment Variables in build Log” in your run script inspector in XCode so that you can see the change in env variables as they hit your script.

    That way you can use the shell to ignore the doxygen calls on things like

    ${TARGET_NAME}
    ${CONFIGURATION}
    

    etc.

    Your log will also show you what’s going on because your run-scripts should be target dependent, but if your unit-tests have a build dependency, you can filter through the method mentioned above.

    Good luck!

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

Sidebar

Related Questions

I have split my iPhone app into two targets one for the ipad and
I have a product with two targets, one for iPhone and the other for
I have two targets for my project: one is the App, and the other
I have a project with two targets - one is for iPhone and the
I have a project that generates applications for two targets. One of the targets
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two cocoa-touch apps in one Xcode project. Xcode gives me iPhone/iPad related
I have an iPhone application in the store that has in-app purchases. This app
I have an iPhone project (Xcode, Objective C++) with two targets - A and
I have made two targets in my project. One for a Staging version and

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.