• 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: Problem having a framework working in one of my targets (a screensaver)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem having a framework working in one of my targets (a screensaver)


  • Subject: Re: Problem having a framework working in one of my targets (a screensaver)
  • From: Kevin Meaney <email@hidden>
  • Date: Thu, 02 Jul 2015 22:46:23 +0100

I had similar issues when wanting to load a framework. My specific problem was loading the framework in an application that was then being loaded when I was using IBDesignable.

This article by Mike Ash was extremely helpful at understanding what was happening.

https://www.mikeash.com/pyblog/friday-qa-2009-11-06-linking-and-install-names.html <https://www.mikeash.com/pyblog/friday-qa-2009-11-06-linking-and-install-names.html>

I think your issue is that when linking your framework you need to set the installation directory path to @rpath. You have done half of what you need by setting Runpath Search Path to loader_path/../Frameworks. Once your have changed the installation directory when building the framework you will also need to change the Runpath Search Path when linking your application.

I hope that helps.

Kevin
> On 2 Jul 2015, at 20:12, Juanjo Conti <email@hidden> wrote:
>
> More on this. It I change the Runpath Search Path for the target in
> question to use loader_path instead of executable_path, the error still
> mention executable_path. Why?
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Problem having a framework working in one of my targets (a screensaver) (From: Juanjo Conti <email@hidden>)
 >Re: Problem having a framework working in one of my targets (a screensaver) (From: Juanjo Conti <email@hidden>)

  • Prev by Date: Re: What is "TypeA -> TypeB"?
  • Next by Date: Re: What is "TypeA -> TypeB"?
  • Previous by thread: Re: Problem having a framework working in one of my targets (a screensaver)
  • Next by thread: Re: Problem having a framework working in one of my targets (a screensaver)
  • Index(es):
    • Date
    • Thread