Re: Internal Framework linked from an internal helper app
Re: Internal Framework linked from an internal helper app
- Subject: Re: Internal Framework linked from an internal helper app
- From: Eric Roccasecca <email@hidden>
- Date: Fri, 12 Mar 2004 08:44:48 -0600
Jonathan,
Your diagram is correct. I did try that kind of "@executable" path in
MyFramework's Xcode project and tried different levels of "../" just to
be sure. That then did work for my helper, but then MyProgram wouldn't
work because it couldn't find MyFramework.
I also tried using this same kind of path by specifying it as an "Other
linker flag" using the "-executable_path" flag in my HelperProgram
Xcode project, but that did not work at runtime. When I peeked in my
HelperProgram's binary the link path for MyFramework was unchanged.
Although now I just had a thought that perhaps it never actually got
passed to the linker by Xcode. I will try it again and thoroughly
examine the build log this time.
Is there some other way to designate where a framework should be looked
for at runtime via Xcode?
--Eric
Eric Roccasecca
Lead Macintosh Software Engineer
CE Software, Inc.
On Mar 11, 2004, at 7:30 PM, email@hidden wrote:
Message: 6
Subject: Re: Internal Framework linked from an internal helper app
Date: Thu, 11 Mar 2004 18:52:48 -0600
From: "Jonathan 'Wolf' Rentzsch" <email@hidden>
To: <email@hidden>
Eric Roccasecca, email@hidden, wrote:
MyProgram.app
Contents
MacOS
MyProgram
Frameworks
MyFramework.framework
PlugIns
OneOfMyPlugins.plugin
Resources
HelperProgram.app
MyProgram links to my internal framework MyFramework and my plugins,
which are loaded into MyProgram, link to this same framework. This of
course works fine because in my framework the "Installation Path" is
set to "@executable_path/../Frameworks". Straight forward stuff, well
once I understood it a couple years ago.
The problem is that now I am needing to use MyFramework from inside
HelperProgram.
So it's really something like this:
MyProgram.app
Contents
MacOS
MyProgram
Frameworks
MyFramework.framework
PlugIns
OneOfMyPlugins.plugin
Resources
HelperProgram.app
Contents
MacOS
HelperProgram
Did you try
@executable_path/../../../../Frameworks
for HelperProgram.app? I may be off-by-one there -- if that doesn't
work,
add or remove another '../'.
| Jonathan 'Wolf' Rentzsch http://rentzsch.com
| Red Shed Software http://redshed.net
| "better" necessarily means "different"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.