• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Overriding a setting using xcodebuild
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Overriding a setting using xcodebuild


  • Subject: Overriding a setting using xcodebuild
  • From: "Brant Sears" <email@hidden>
  • Date: Mon, 9 Jan 2006 15:24:58 -0500
  • Thread-topic: Overriding a setting using xcodebuild

My project has a configuration file as part of its resources. Since we have to change the configuration file very often between the development environment, the test environment, and the deployment environment, I have three of these files. To switch between them, I have created a build setting called CONFIG_FILENAME. Then, I added a new build phase that is a shell script that copies this file into the resources folder of my app (chaning its name in the process).

This works very well. However, I *now* want to override this setting in my build script which calls "xcodebuild" to build the project.

When I tried to do this via:

xcodebuild -project myProject.xcodeproj -target MyTarget -configuration Release build -CONFIG_FILENAME=LabConfig.xml

this did not work. I still end up with the development configuration which is what is specified in the project filename.

Any idea what I'm doing wrong?

Brant Sears

<<winmail.dat>>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Overriding a setting using xcodebuild
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Debugger can't find correct source file
  • Next by Date: Re: Class Browser with Ruby
  • Previous by thread: Re: Debugger can't find correct source file
  • Next by thread: Re: Overriding a setting using xcodebuild
  • Index(es):
    • Date
    • Thread