Overriding a setting using xcodebuild
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