Re: Problem having a framework working in one of my targets (a screensaver)
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: Juanjo Conti <email@hidden>
- Date: Thu, 02 Jul 2015 20:22:39 -0300
Like this? http://i.imgur.com/4L974ZH.png
The problem continues. I'll read the article. Thanks.
On Thu, Jul 2, 2015 at 6:22 PM, Contact Zukini <email@hidden>
wrote:
> Hi Juanjo,
>
> 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
>
> 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. But that also
> means that your application target will have to do the same thing.
>
> I hope that helps.
>
> Kevin
>
> But then you will need to update your application target.
>
> 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?
>
> http://i.imgur.com/yIoTWNe.png
>
> On Wed, Jul 1, 2015 at 5:04 PM, Juanjo Conti <email@hidden>
> wrote:
>
> Hi!
>
> I've an XCode Swift project with 2 targets, an traditional app and a
> screensaver. I want to use a framework in both (I've tried with at least 2
> frameworks with no luck).
>
> In the app they work ok but in the screensaver, despite that I'm able to
> compile (I have a bridging file with the appropriate importe and I have the
> framework copied and linked, see http://imgur.com/yniEY1b) when the
> screensaver runs it crash with this error in Console:
>
> Jul 1 16:33:15 ironbird.local ScreenSaverEngine[60006]: Error loading
> /Users/juanjo/Library/Screen Savers/Ninja.saver/Contents/MacOS/Ninja:
> dlopen(/Users/juanjo/Library/Screen
> Savers/Ninja.saver/Contents/MacOS/Ninja, 265): Library not loaded:
> @executable_path/../Frameworks/Paddle.framework/Versions/A/Paddle
> Referenced from: /Users/juanjo/Library/Screen
> Savers/Ninja.saver/Contents/MacOS/Ninja
> Reason: image not found
>
> Can someone help me to solve the problem or at least to debug it? If I
> search for the error I find people that forgotten to either copy or link
> the framework, which is not my case.
>
> Thanks in advance!
>
> --
>
> Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com
> <email@hidden>>
>
> Software Engineer - Carousel Apps <https://carouselapps.com>
>
>
>
>
> --
>
> Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com
> <email@hidden>>
>
> Software Engineer - Carousel Apps <https://carouselapps.com>
>
> --
> Carousel Apps Limited, registered in England & Wales with registered number
>
> 7689440 and registered office Unit 2 Artbrand Studios, 7 Leathermarket
> Street, London SE1 3HN. Any communication sent by or on behalf of Carousel
>
> App Ltd or any of its subsidiary, holding or affiliated companies or
> entities (together "Watu") is confidential and may be privileged or
> otherwise protected. If you receive it in error please inform us and then
> delete it from your system. You should not copy it or disclose its contents
>
> to anyone. Messages sent to and from Watu may be monitored to ensure
> compliance with our internal policies and to protect our business. Emails
> are not secure and cannot be guaranteed to be error free. Anyone who
> communicates with us by email is taken to accept these risks.
> _______________________________________________
>
> 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
>
>
>
--
Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com
<email@hidden>>
Software Engineer - Carousel Apps <https://carouselapps.com>
--
Carousel Apps Limited, registered in England & Wales with registered number
7689440 and registered office Unit 2 Artbrand Studios, 7 Leathermarket
Street, London SE1 3HN. Any communication sent by or on behalf of Carousel
App Ltd or any of its subsidiary, holding or affiliated companies or
entities (together "Watu") is confidential and may be privileged or
otherwise protected. If you receive it in error please inform us and then
delete it from your system. You should not copy it or disclose its contents
to anyone. Messages sent to and from Watu may be monitored to ensure
compliance with our internal policies and to protect our business. Emails
are not secure and cannot be guaranteed to be error free. Anyone who
communicates with us by email is taken to accept these risks.
_______________________________________________
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