• 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
Re: dyld: library not loaded
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dyld: library not loaded


  • Subject: Re: dyld: library not loaded
  • From: Daniel Luis dos Santos <email@hidden>
  • Date: Fri, 30 May 2008 13:20:08 +0100

I have found a fix by getting to know what @rpath means. It is a tag placed in the generation of an executable's binary format indicating alternate paths to look for dependencies (including other libraries). By setting the build option "runpath search paths" to the developer frameworks directory, the executable looks in this place for the sen testing library at run time.

On May 28, 2008, at 4:13 PM, Jean-Daniel Dupas wrote:


Le 28 mai 08 à 16:43, Daniel Luis dos Santos a écrit :

Hello,

I am trying to debug test code, and have made a target for a command line tool to do so. I have configured the SenTestingKit framework in the build options, and it compiles and links fine.

When I run the code I get the following output :


dyld: Library not loaded: @rpath/SenTestingKit.framework/Versions/A/ SenTestingKit
Referenced from: /Users/dlsa/code/Boobs/trunk/base-common/build/ Debug/testRunner
Reason: image not found




SenTestingKit is intended to be used with the "otest" tool (in / Developer/Tools that is automatically invoked by Xcode when you build a TestUnit target), and not by your own testing tool.
If you really need to create your own testing tool, you have to set the DYLD_FALLBACK_FRAMEWORK_PATH env var to /Developer/Library/ Framework (where the SenTestingKit framework stand). (see man dyld for details).





_______________________________________________ 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
References: 
 >dyld: library not loaded (From: Daniel Luis dos Santos <email@hidden>)
 >Re: dyld: library not loaded (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Library and framework files in projects - does the "Full Path" information ever get used?
  • Next by Date: How to rename project.
  • Previous by thread: Re: dyld: library not loaded
  • Next by thread: Re: Xcode-users Digest, Vol 5, Issue 328
  • Index(es):
    • Date
    • Thread