Re: Specifying Where to Place Build Results
Re: Specifying Where to Place Build Results
- Subject: Re: Specifying Where to Place Build Results
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 20 Oct 2004 08:29:44 -0400
on 2004-10-19 7:27 PM, Sean McBride at email@hidden wrote:
> j o a r (email@hidden) on Wed, Oct 20, 2004 19:07 said:
>
>> You should (at least could) use a copy phase in the application target
>> to copy the build products from the auxiliary targets to the resource
>> folder of the application.
>
> Thanks for this idea. I tried and it does work, though there is a problem.
>
> As I said, I have my main app, and a daemon app. The daemon lives in the
> main app's /Resources. So in the main app target I have added a copy
> phase and it does copy properly. But if I then do "Build > Build and
> Debug" of the daemon it debugs the app in /build, not in /Resources.
> Then everything goes wrong since the code depends on the daemon being in
> /Resources.
>
> Any further ideas?
I use the same technique successfully in the same circumstances: a daemon
inside the main app bundle's Resources folder. I can't spare the time to go
through all my settings and call them out to you, but I can mention one
problem that I recall having had to solve along the way that might be
relevant to you.
I found that the Copy phase didn't work if I was modifying both the daemon
and the main app in tandem and compiling them together with interproject
dependencies set. I worked out in my head some logical explanation of why
this was happening, but I can't now remember what it was. It suggested to me
that the easiest cure would be to add a Shell Script phase that performs the
copy "manually," so to speak, making sure to pick up the built daemon from
the proper location and stuff it into the built main app bundle. This now
works correctly in all cases, and debugging both the daemon and the main app
works seamlessly.
Writing the shell script wasn't real easy. I had to figure out how to make
sure that all the symlinks were correctly set up within the built main app
bundle. Write me off-list if you want a copy of the shell script.
(Bear in mind that I have separate projects for the daemon and the main app,
with interproject dependencies set up to ensure that the latest version of
the daemon source is compiled first, before the main app. I also direct all
my built products and intermediates to a separate "Builds" folder outside
either project folder, because I often use custom frameworks that apply to
several of my projects. I don't know if any of this matters for the problem
you describe.)
--
Bill Cheeseman - email@hidden
PLEASE NOTE NEW E-MAIL ADDRESS!
_______________________________________________
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