Re: Build problem
Re: Build problem
- Subject: Re: Build problem
- From: gbrown <email@hidden>
- Date: Wed, 06 Apr 2005 09:35:58 -0400
I also suffered from Wolfram's problem.
There are several things I've learned using XCode + WebObjects, some
are documented, some are not.
... you can't build applications with "Deployment" or "Web Server"
styles from XCode running in the Finder, you need to execute it via
the command line "xcodebuild" so you can set DSTROOT to the right value.
Actually you can click on the target, click expert view, click + to add
DSTROOT and the value /
Then instead of /tmp install, things will be installed on your system.
When you enter DSTROOT, the xcode will change the parm name to something
else, right before your eyes. Xcode just passes things to Jam, and THAT
is confusing because one may think they are using xcode, one may spend
hours reading the xcode documentation, and in the end, still be all
jammed up!
-- the GUI build in "Deployment" style, sets DSTROOT=/tmp/app.dst
-- in the xcodebuild usage, you set DSTROOT=/
If you do try and build an application in "Deployment" style it will
get built into a directory as:
/tmp/app.dst//Library/WebObjects/Applications/app.woa
If you try to defeat the above behavior and adjust the
"INSTALL_PATH_FOR_STYLE" in the Styles settings from
"$(DSTROOT)/$(INSTALL_PATH)" to "$(INSTALL_PATH)", the application
will try and build into the right place, but the build will fail with
Wolfram's error below.
... interestingly, you CAN build a framework correctly with XCode
using the trick in the previous paragraph -- it will build into
/Library/Frameworks/ and it won't fail to complete the build.
... this behavior has persisted through all versions of Project
Builder and all versions of XCode up to v1.5 -- I do have to ask
myself why this is the case. Having to provide a workaround like this
in a product's README for four years is pretty bad.
It's mainly as a result of this (and a need to build on unix), that I
do my development with XCode, but I do all my deployment builds with
ant now.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden