Re: Determine load path of linked framework at runtime
Re: Determine load path of linked framework at runtime
- Subject: Re: Determine load path of linked framework at runtime
- From: Wim Lewis <email@hidden>
- Date: Wed, 05 Jun 2013 16:05:58 -0700
On 5 Jun 2013, at 3:59 PM, Graham Cox wrote:
> Hi all,
>
> Is there a way to discover the load path of a framework at runtime?
>
> I have an odd situation where a framework which is bundled within my app is being overridden by an older copy on a user's machine. They've tried looking in all the usual /Frameworks locations and performed a search but to no avail. If there's some way to log the actual load path used that would reveal the problem immediately, I'm thinking.
For a one-off, they can try running the program with the DYLD_PRINT_LIBRARIES environment variable set (see the dyld(1) man page).
You can also query the dynamic linker's information about a library at run time using dladdr().
_______________________________________________
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