• 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
How to link a Cocoa shell tool to an embedded framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to link a Cocoa shell tool to an embedded framework


  • Subject: How to link a Cocoa shell tool to an embedded framework
  • From: "email@hidden" <email@hidden>
  • Date: Sun, 23 Oct 2005 10:57:49 -0400

Below is a part of a wiki post that I started to get help with this problem. The live page is here
(http://www.cocoadev.com/index.pl?LinkingWorkerTaskToEmbeddedFramework).


Does anyone know how to link a "Cocoa" shell tool to an embedded framework? I have an application with a worker task that I would like to link against an embedded framework. The problem I'm having is getting
Xcode to compile the tool against the embedded framework. I get "ld" errors even though I have placed
the framework in a directory relative to the tool's build path (@executable_path/../Frameworks).
My guess is that I have to modify a target build setting somewhere. Any help would be greatly
appreciated.


Basically I'm doing this:

- Creating an embedded Cocoa framework project (ServerClientSupport).
- Creating a Cocoa application that links against the embedded framework (ServerClientSupport).
- Creating a Cocoa shell tool that links against the embedded framework that is a resource of the Cocoa application.


The error I'm getting is:

/usr/bin/ld: warning can't open dynamic library:
@executable_path/../Frameworks/ServerClientSupport.framework/Versions/ A/ServerClientSupport
(checking for undefined symbols may be affected) (No
such file or directory, errno = 2)


The thing I don't understand is where @executable_path is pointing to when "ld" tries to open this framework.

I'm hoping I can just put the tool in the "Contents/MacOS" folder of the app, but I can't even get to the point of successfully building the tool because of the "ld" error. I placed a Frameworks folder with a copy of the embedded framework in a location relative to the build location for the tool (i.e. relative to the search path
@executable_path/../Frameworks), but this doesn't work.



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Killing a daemon process
  • Next by Date: Re: Resizing bezier objects.
  • Previous by thread: setTextColor making an application crash without being called
  • Next by thread: Problems drawing... Need help please.
  • Index(es):
    • Date
    • Thread