Skip navigation.
 
mlRe: Frameworks and storage locations...
FROM : Matt Watson
DATE : Sat Jan 12 19:25:01 2002

You should use the @executable_path prefix when setting the install name
for your framework. This is documented in the Compiler Tools release
note. Something like
@executable_path/../Resources/Foo.framework/Versions/A/Foo would
probably do the trick. The linker embeds the install name of all linked
frameworks and shared libraries in the executable. When the dynamic
linker runs as your program starts up, if it sees @executable_path, it
replaces that with the full path to the executable when searching for
dependent libraries/frameworks.

What does otool -L say when run on the executable and the framework?

matt.


Related mailsAuthorDate
mlFrameworks and storage locations... Nick Zitzmann Jan 12, 05:21
mlFrameworks and storage locations... Nick Zitzmann Jan 12, 16:30
mlRe: Frameworks and storage locations... Matt Watson Jan 12, 19:25
mlRe: Frameworks and storage locations... Nick Zitzmann Jan 13, 04:49
mlRe: Frameworks and storage locations... Andrew Salamon Jan 18, 09:30