• 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: @loader_path only works in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @loader_path only works in Xcode


  • Subject: Re: @loader_path only works in Xcode
  • From: Jeff Johnson <email@hidden>
  • Date: Fri, 17 Aug 2012 21:26:19 -0500

On Aug 17, 2012, at 9:00 PM, Jerry Krinock wrote:

> Air1:Contents jk$ pwd
> /Users/jk/Library/Developer/Xcode/DerivedData/MainApp-hkrnkbihzhcgkngzhdqroeilxfyd/Build/Products/Debug/MainApp.app/Contents
> Air1:Contents jk$ Helpers/Helper1
> dyld: Library not loaded: @loader_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle
>  Referenced from: /Users/jk/Library/Developer/Xcode/DerivedData/MainApp-hkrnkbihzhcgkngzhdqroeilxfyd/Build/Products/Debug/MainApp.app/Contents/Frameworks/MainFramework.framework/Versions/A/MainFramework
>  Reason: image not found
> Trace/BPT trap: 5
>
> Why?  The loader is MainFramework; therefore @loader_path is /path/toContents/Frameworks.  The Install Name should therefore resolve by traversing "/.." to the parent directory, which is /path/to/Contents, then back down into Frameworks/Sparkle.framework, etc., resulting in /path/to/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle, as required.

No, the @loader_path includes MainFramework.framework/Versions/A/

-Jeff


 _______________________________________________
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: @loader_path only works in Xcode
      • From: Jerry Krinock <email@hidden>
References: 
 >@loader_path only works in Xcode (From: Jerry Krinock <email@hidden>)

  • Prev by Date: @loader_path only works in Xcode
  • Next by Date: Re: trying to understand crash reports better
  • Previous by thread: @loader_path only works in Xcode
  • Next by thread: Re: @loader_path only works in Xcode
  • Index(es):
    • Date
    • Thread