Re: Frameworks inside applications
Re: Frameworks inside applications
- Subject: Re: Frameworks inside applications
- From: Kurt Revis <email@hidden>
- Date: Sat, 23 Feb 2002 17:08:56 -0800
Does anyone know the magic incantation that I need to have the app
search its own Frameworks directory for frameworks?
There are actually pretty decent instructions for doing this in the
Project Builder help. (It doesn't sound like you've found that yet,
although I could be wrong.) The secret is the @executable_path stuff.
On a related note, is there an easy way to strip the Headers directory
from the framework while copying it into my application's Frameworks
directory? I figure the worst case is that I just add a Shell Script
build phase and use good old rm.
That's the only way I know of. I don't use a shell script build phase,
I just have a script which builds all my frameworks and the app and then
does all the cleanup and packaging.
Also note that after you copy the frameworks into your app wrapper,
prebinding won't work anymore (since the modification date of the
frameworks will be later than the date stored in the app's binary). So
you need to do something like this to get prebinding to work again:
cd "$INSTALL_DIRECTORY/MyApp.app/Contents/MacOS"
redo_prebinding -e "$PWD"
../Frameworks/MyFramework.framework/Versions/Current/MyFramework
redo_prebinding -e "$PWD" MyApp
Hope this helps...
--
Kurt Revis
email@hidden
_______________________________________________
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.