Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Embedding frameworks across projects



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.