• 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
Linking Tool to nested dylib: "Library not loaded…"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking Tool to nested dylib: "Library not loaded…"


  • Subject: Linking Tool to nested dylib: "Library not loaded…"
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 24 Oct 2011 09:11:31 -0700

I've built a command-line tool whose sole purpose is to test a dylib I've written.  My test tool is linked to the dylib, and the dylib itself is linked to some 3rd-party dylibs.

My command-line tool crashes on launch…

dyld: Library not loaded: @executable_path/libmozalloc.dylib
  Referenced from: /Users/jk/Builds/Debug/TestTool
  Reason: image not found

where libmozalloc.dylib is one of the four 3rd-party dylibs.

The size of my dylib product is 310 KB.
The size of test tool product is 13 KB.

What am I doing wrong?

Thanks,

Jerry


P.S.  Just to be very clear, by "linked to", I mean that the linked-to library is listed in the "Linked Libraries" section of Target properties (Xcode 3).

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Linking Tool to nested dylib: "Library not loaded…"
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Xcode 4.2 Debugging problem.
  • Next by Date: Re: Linking Tool to nested dylib: "Library not loaded…"
  • Previous by thread: Re: Xcode 4.2 Debugging problem.
  • Next by thread: Re: Linking Tool to nested dylib: "Library not loaded…"
  • Index(es):
    • Date
    • Thread