• 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
Re: What's the magic in 'Installation Directory' (INSTALL_PATH)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the magic in 'Installation Directory' (INSTALL_PATH)


  • Subject: Re: What's the magic in 'Installation Directory' (INSTALL_PATH)
  • From: Steve Checkoway <email@hidden>
  • Date: Sun, 2 Dec 2007 08:05:11 -0800


On Dec 2, 2007, at 7:12 AM, Jerry Krinock wrote:

When I am building a framework that is going to ship inside the package of an application, in the framework's Target, I need to set 'Installation Directory' (INSTALL_PATH) to '@executable_path/../ Frameworks'. This is so that the ^application^ can find ^it^.

So, I'm telling the framework to say "Come find me here". I don't understand how this can work. How can the application get this message from the framework saying where to find the framework before it has found the framework?

It would make much more sense if I would have to set something in the ^application^ to say "Look for that framework over there".

How does this magic work?


I'm no expert, but if I had to take a guess, I'd say that the linker (the one linking your application) looks at the install name of the framework that is being linked to and writes the install name into the application. When you use @executable_path, that gets written into the application and it knows where to find the framework.

Someone can correct me if that is incorrect.

--
Steve Checkoway



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: What's the magic in 'Installation Directory' (INSTALL_PATH)
      • From: Jeff Johnson <email@hidden>
References: 
 >What's the magic in 'Installation Directory' (INSTALL_PATH) (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Hundred of C++ linker warnings in Xcode 3: odd but not fatal
  • Next by Date: Re: What's the magic in 'Installation Directory' (INSTALL_PATH)
  • Previous by thread: What's the magic in 'Installation Directory' (INSTALL_PATH)
  • Next by thread: Re: What's the magic in 'Installation Directory' (INSTALL_PATH)
  • Index(es):
    • Date
    • Thread