Re: location of frameworks at runtime
Re: location of frameworks at runtime
- Subject: Re: location of frameworks at runtime
- From: Robert Cerny <email@hidden>
- Date: Sat, 6 Dec 2003 13:36:45 +0100
Hi,
you need to build you framework with @executable_path/../Frameworks/ in
the installation location. Than you can bundle it into you app wrapper.
It can be done easily using new Copy Files Build Phase.
The second approach, which is nested from NeXTStep/OpenSTEP origin (as
far as I was told) is to install the framework into it's proper place,
it means one of the directories ~/Library/Framework,
/Library/Framework, /Network/Library/Framework. There is of course
/System/Library/Framework but it's reserved by Apple.
The installation of framework into those locations is against Apple's
vision of drag&drop installations but has a very nice side effects like
updating framework only, shared with several apps , to get speed etc...
(You know what I'm talking about)
HTH
Robert
On 6.12.2003, at 12:34, Olof Hellman wrote:
> I'm trying to understand how a framework gets loaded at runtime.
> Specifically, I have a two piece project which consists of a framework
> and an application, both built in XCode.
>
> If I put the framework inside the application bundle in the Frameworks
> directory at .../myApp.app/Contents/Frameworks/ the app won't launch
> -- I get a ' can't open library:
> /Library/Frameworks/myApp.framework/Versions/A/myApp ' message in the
> console
>
> If I put the framework in /Library/Frameworks/ , then the app
> launches fine.
>
> Even more curiously, XCode is happy to debug the application without
> the framework in either location -- as long as XCode knows the path to
> the framework it is using.
>
> So the question is, what do I need to do to get a Framework in
> .../myApp.app/Contents/Frameworks/ to load at runtime? I am under
> the impression that this is the appropriate folder for
> application-specific support libraries to go.
>
> - Olof
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.