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: Roland King <email@hidden>
- Date: Fri, 03 Jul 2015 17:38:40 +0800
> On 3 Jul 2015, at 17:29, Kevin Meaney <email@hidden> wrote:
>
> I’m not sure either of those will work.
>
> On 3 Jul 2015, at 10:07, Roland King <email@hidden <mailto:email@hidden>> wrote:
>>
>> There’s two other options
>>
>> 1) Use install_name_tool to change the name in the library to the one you want. If it’s shorter, and it should be as the install name in that library seems rather long, you can do that
>
> I don’t think modifying the Installation Directory will work. I’ve checked my framework using otool as Juanjo mentioned he did. Building my Framework I’ve set Installation Directory to @rpath but the name I see using otool still says @executable_path/… etc. so there is some information set elsewhere which informs the linker. So I don’t think editing the path using install_name_tool will help.
I think it’ll work just fine, that’s what install_name_tool is there for, that’s what I’ve used it for and many others too. You change the install name of the thing you’re linking to before you link it and it shows up in a the right place in the final executable.
I believe Mike Ash did a series of two great articles on this.
_______________________________________________
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