FROM : Nick Zitzmann
DATE : Wed Mar 05 23:14:38 2008
On Mar 5, 2008, at 3:00 PM, Ryan wrote:
> 3/5/08 1:53:14 PM System Preferences[11649] Error loading /Users/
> ryan/Library/PreferencePanes/Myprefpane.prefPane/Contents/MacOS/
> Myprefpane: dlopen(/Users/ryan/Library/PreferencePanes/
> Myprefpane.prefPane/Contents/MacOS/Myprefpane, 265): Library not
> loaded: @executable_path/../Frameworks/MyFramework.framework/
> Versions/A/MyFramework
> Referenced from: /Users/ryan/Library/PreferencePanes/
> Myprefpane.prefPane/Contents/MacOS/Myprefpane
> Reason: image not found
>
> What in the heck? I'm sure my framework works okay as I'm using it
> in another project... Any ideas on this one?
That won't work because @executable_path points to the path of System
Preferences, not your preference pane. Try using @loader_path instead,
or make a static version of your framework if possible.
Nick Zitzmann
<http://www.chronosnet.com/>
DATE : Wed Mar 05 23:14:38 2008
On Mar 5, 2008, at 3:00 PM, Ryan wrote:
> 3/5/08 1:53:14 PM System Preferences[11649] Error loading /Users/
> ryan/Library/PreferencePanes/Myprefpane.prefPane/Contents/MacOS/
> Myprefpane: dlopen(/Users/ryan/Library/PreferencePanes/
> Myprefpane.prefPane/Contents/MacOS/Myprefpane, 265): Library not
> loaded: @executable_path/../Frameworks/MyFramework.framework/
> Versions/A/MyFramework
> Referenced from: /Users/ryan/Library/PreferencePanes/
> Myprefpane.prefPane/Contents/MacOS/Myprefpane
> Reason: image not found
>
> What in the heck? I'm sure my framework works okay as I'm using it
> in another project... Any ideas on this one?
That won't work because @executable_path points to the path of System
Preferences, not your preference pane. Try using @loader_path instead,
or make a static version of your framework if possible.
Nick Zitzmann
<http://www.chronosnet.com/>
| Related mails | Author | Date |
|---|---|---|
| Ryan | Mar 5, 23:00 | |
| Nick Zitzmann | Mar 5, 23:14 | |
| Ryan | Mar 6, 00:44 | |
| Nick Zitzmann | Mar 6, 01:18 | |
| Adam Leonard | Mar 6, 05:18 | |
| Ryan | Mar 7, 17:44 |






Cocoa mail archive

