• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Embedding frameworks across projects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Embedding frameworks across projects
      • From: Greg Hurrell <email@hidden>
  • Prev by Date: Re: clean samples of Xcode hang (was WakeOnLan + Xcode2.2 = beachball?)
  • Next by Date: GUI builder
  • Previous by thread: Re: breaking into debugger from assert
  • Next by thread: Re: Embedding frameworks across projects
  • Index(es):
    • Date
    • Thread