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/>
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 mails | Author | Date |
|---|---|---|
| David Alter | Jul 26, 23:49 | |
| Nick Zitzmann | Jul 26, 23:57 | |
| Sherm Pendley | Jul 27, 00:01 | |
| David Alter | Jul 27, 01:41 | |
| Nick Zitzmann | Jul 27, 02:37 |






Cocoa mail archive

