Re: @loader_path only works in Xcode
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