Re: Frameworks in Bundles
Re: Frameworks in Bundles
- Subject: Re: Frameworks in Bundles
- From: Matthew Formica <email@hidden>
- Date: Fri, 29 Mar 2002 15:18:21 -0800
Unfortunately, the @executable_path magic doesn't work for bundles; so dyld
can't find the frameworks the bundle is linked against - @executable_path
*always* refers to the application executable, and the path you specified
isn't relative to that. You'll have to have your bundles explicitly load
any frameworks they need, along with symbols from said frameworks, yourself,
or put the frameworks in a "well known" location, or put the frameworks that
the bundle needs in the Frameworks directory of the launching application.
- Matthew
On 3/29/02 9:13 AM, "Rosyna" <email@hidden> wrote:
>
I have a few frameworks in NSBundles. When I try to load these
>
bundles I get a message in the console:
>
>
-[NSBundle load]: Error loading code
>
/Volumes/Apostasy/rosyna/Dev/MyAppHost/build/MyApp.bundle/Contents/MacOS/MyApp
>
for bundle /Volumes/Apostasy/rosyna/Dev/MyAppHost/build/MyApp.bundle,
>
error code 0 (link edit error code 0, error number 2 (dyld:
>
/Volumes/Apostasy/rosyna/Dev/MyAppHost/build/MyAppHost/Contents/MacOS/MyAppHos
>
t
>
can't open library:
>
@executable_path/../Frameworks/MyAdditions.framework/Versions/A/MyAdditions
>
(No such file or directory, errno = 2)
>
))
>
>
Can a bundle even load it's own framework?
_______________________________________________
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.