Embedding frameworks across projects
Embedding frameworks across projects
- Subject: Embedding frameworks across projects
- From: Adrian Sampson <email@hidden>
- Date: Tue, 28 Feb 2006 18:48:18 -0800
I'm building a Cocoa application that embeds a framework, and I've
decided to split the framework off into a separate project (because
I'd like to release the framework independently for reuse). I've
added a reference to the framework target in my app project and the
program compiles and links properly with the framework.
However, my "copy frameworks" build step fails because pbxcp is
looking, for no reason I can discern, in the application project's
build directory (even though gcc (at both compiling and linking
steps) is getting a correct -F parameter that directs it to the
framework build directory).
Xcode runs this pbxcp command:
/System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-
symlinks /Users/adrian/APPLICATION_PROJECT_PATH/build/Debug/
FVSprites.framework /Users/adrian/APPLICATION_PROJECT_PATH/build/
Debug/APPLICATION.app/Contents/Frameworks
(The error, of course, is "no such file or directory".)
I have considered just adding the built framework (from the Finder)
to the application project and just using the cross-project
representation for dependency, but this would cause Debug and Release
builds of the application to use the same build of the framework (I
would, of course, like to use the corresponding build of the
framework in the application).
Is there any way to tell pbxcp to look in the right place for a cross-
project product as other build steps do?
Thanks much,
- Adrian
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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