Re: Making my release build
Re: Making my release build
- Subject: Re: Making my release build
- From: Shawn Erickson <email@hidden>
- Date: Fri, 12 Nov 2004 10:02:28 -0800
To add an example the following is a basic script that I use to version
and build release versions (have more complex ones to package into
installers/disk images, etc.) of products I work on.
#!/usr/bin/sh
/Developer/Tools/agvtool bump -all
xcodebuild clean -alltargets
xcodebuild install -alltargets
xcodebuild clean -alltargets
As noted by Fritz I could specify build style (-buildstyle <name>) in
the above if I wanted but by not doing so the default compiler/etc.
settings for the project are used unmodified by any build style. So if
you set the base defaults the way you want release builds to be built
you are good otherwise specify the build style that has the setting
overrides that you want to be used for release builds.
man xcodebuild for more information...
-Shawn
On Nov 11, 2004, at 12:15 PM, Fritz Anderson wrote:
This is one of those replies that gets offered as much in hope that
I'll be corrected as that I'm confident in its correctness.
There is a third build mode, triggered by executing
xcodebuild install
in the project directory. This executes a build without the settings
in _any_ build style,* which in the supplied template projects
produces a heavily optimized and stripped executable, at
/tmp/${PROJECT_NAME).dst/Users/$(USER_NAME)/Applications/
$(PRODUCT_NAME).app
The contemplated strategy seems to be: Use the deployment build style
for things like distributable betas, and use xcodebuild for the
honest-to-God final build. The target settings should therefore be the
final, distribution settings, with development-time variants in any
(or if necessary all) build styles.
So put the name of your final header in the Prefix Header setting in
the target, and the debug header in the Development and Deployment
styles. Typing Prefix into the search field in the style settings tab
will afford you a place to set the prefix for the style. Same thing
with Product Name.
Changing the build style does not seem to dirty the entire build tree,
as I agree with you in thinking it should. I just remember to clean
after changing styles.
* You can specify a build style to xcodebuild, but the default is to
ignore styles.
-- F
On 11 Nov 2004, at 1:02 PM, David Dunham wrote:
I've been developing my app just fine.
I now want to release it.
I want to use a separate header file (with different #defines), and
make a separate bundle (MyApp.app vs MyApp-debug.app).
Is "Development Build Products Path" what I change? (It seems to be
available for Deployment and Development styles both, which makes no
sense.)
The Prefix Header doesn't seem to be attached to a build style at all.
_______________________________________________
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