Re: Referenced projects and their targets/executables
Re: Referenced projects and their targets/executables
- Subject: Re: Referenced projects and their targets/executables
- From: Chris Hanson <email@hidden>
- Date: Tue, 27 Nov 2007 21:57:30 -0800
On Nov 27, 2007, at 9:37 PM, Jacob Bandes-Storch wrote:
I'm trying to have the executable from one of my projects (Project 1
from here on for simplicity) copied into the Resources folder of
Project 2 when the Project 1 is built.
This is an Xcode question, not a Cocoa question, and therefore belongs
on the xcode-users list. Thanks.
I added Project 1 as a reference, set up its target as a dependency,
and added the executable to the Copy Bundle Resources build phase of
Project 2. The dependency part works just fine, but when it gets to
the Copy Bundle Resources phase, it fails with this error:
pbxcp: MyApp.app: No such file or directory
When I right-click on the executable in the Copy Bundle Resources
Phase and Show in Finder, the correct executable is shown, in
Project 1/build/Release/. However, it appears that it's looking in
the Project 2/build/Release folder for copying to the resources
folder for some reason. If I copy the executable from Project 1/
build/Release into Project 2/build/Release, the build succeeds and
the application is put inside the newly built bundle. Why would this
happen? How can I fix it? Thank you.
Unfortunately, this isn't something you can fix. Xcode keeps the two
projects distinct even though they have a dependency between them, so
everything done in Project 1 is done strictly in the context of
Project 1, and everything done in Project 2 is done strictly in the
context of Project 2. The only two pieces of information shared
between them are the fact that a dependency exists, and the name of
the configuration being built.
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden