Skip navigation.
 
mlRe: Plugins loading frameworks
FROM : Nick Zitzmann
DATE : Thu Jul 27 02:37:02 2006

On Jul 26, 2006, at 5:41 PM, David Alter wrote:

> 1) Where in the xCode project file for the framework can I set the 
> installer_name. I do not see it an any of the build settings.


It's in the target settings, called "installation directory". Use the 
search field if you need to find it.

> 2) I just read up on the @loader_path and let me see if I 
> understand this correctly. This is the relative path of the what 
> ever loads this Framework. So my plugin that wants to load this 
> framework has the framework in MyPlugin.bundle/Contents/Frameworks/
> GreatCode.framework. I would set me @loader_path on 
> GreatCode.framework to some thing like
>
>     @ loader_path/../Frameworks/GreatCode.framework/Versions/A/GreatCode
>
> Is that correct?


Close; you don't need to add anything after the Frameworks. The 
linker will fill that out for you.

Note that you may need to use install_name_tool to set @loader_path 
correctly. I don't know if this was fixed in later Xcode distros, but 
the linker that came with Xcode 2.0 wouldn't embed @loader_path into 
a binary. See <http://developer.apple.com/releasenotes/DeveloperTools/
dyld.html
> for more information.

Nick Zitzmann
<http://www.chronosnet.com/>

Related mailsAuthorDate
mlPlugins loading frameworks David Alter Jul 26, 23:49
mlRe: Plugins loading frameworks Nick Zitzmann Jul 26, 23:57
mlRe: Plugins loading frameworks Sherm Pendley Jul 27, 00:01
mlRe: Plugins loading frameworks David Alter Jul 27, 01:41
mlRe: Plugins loading frameworks Nick Zitzmann Jul 27, 02:37