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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to