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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:47:03+00:00 2026-05-23T01:47:03+00:00

I am running xcodebuild from the command line, and frequently I change the PRODUCT_NAME

  • 0

I am running xcodebuild from the command line, and frequently I change the PRODUCT_NAME to distinguish between versions and server endpoints (ie MyProduct.r1234staging). This builds several dependent targets which are static libraries, and then the final application. In the xcode 3 version of the command, the PRODUCT_NAME only affected the final product, not the libraries. However it now seems to be setting those names for the libraries as well (ie building libMyProduct.r1234staging.a).

Is this expected behavior?

  • 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-23T01:47:04+00:00Added an answer on May 23, 2026 at 1:47 am

    How I fixed this:

    1. Add CUSTOM_BUNDLE_IDENTIFIER and CUSTOM_PRODUCT_NAME under the user defined section of build settings.
    2. Add a .xcconfig file to the project with CUSTOM_PRODUCT_NAME, and
      CUSTOM_BUNDLE_IDENTIFIER set to the nominal values.
    3. Set the product name to ${CUSTOM_PRODUCT_NAME} and bundle name to ${CUSTOM_BUNDLE_IDENTIFIER} in the info.plist.
    4. Set the Product Name to ${CUSTOM_PRODUCT_NAME} under build settings.

    When I want to change some of the values I create a new xcconfig file, and specify that xcconfig file using the -xcconfig param for xcodebuild. This allows you to change the settings on the fly.

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

Sidebar

Related Questions

i am running xcodebuild command from terminal but getting the following error ATION (Release)
I'm running xcodebuild, but the command line isn't outputting source code warnings and errors.
Running xcodebuild from the console will bring you very verbose output and I wasn't
Running OS X Leopard an MacBook Pro from Jan. 2008. I used to run
Running Ubuntu 11.04 on vagrant, mac os x 10.7.2. Running chef server. Trying to
Running a remote shell via telnet (no ssh on the remote server), I need
Running MS SqlServer from ASP.NET I have a visitors table with no unique key.
Running a Selenium 2 RemoteWebDriver server using java -jar selenium-server-standalone-2.15.0.jar . I always get
Running test.py gives Traceback (most recent call last): File test.py, line 3, in <module>
Running JBoss 5.1, with Hibernate as the JPA provider. Backed with SQL Server 2008.

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.