Frameworks inside applications
Frameworks inside applications
- Subject: Frameworks inside applications
- From: Pete Yandell <email@hidden>
- Date: Sun, 24 Feb 2002 11:17:02 +1100
I'm trying to include a framework inside my application.
The application links against the framework just fine, and I've added a
Copy Files build phase that successfully copies the framework to the
Frameworks directory in my app's Contents directory.
Problem is, the dynamic loader doesn't seem to find the framework:
dyld: /Users/pete/Code/Scratch/Sub/build/Sub.app/Contents/MacOS/Sub
can't open library:
/Users/pete/Library/Frameworks/XML.framework/Versions/A/XML (No such
file or directory, errno = 2)
If I set DYLD_FRAMEWORK_PATH manually and run the app from the shell it
works just fine, but obviously this isn't acceptable for an installed
application.
Does anyone know the magic incantation that I need to have the app
search its own Frameworks directory for frameworks?
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.
If I can sort this one out, I'll write up and post a little article on
how to manage the source code of your own frameworks and have them
easily included in your different applications. I've come up with what
I think is quite a nice way of doing this using CVS and a couple of
simple Makefiles.
Pete Yandell
http://pete.yandell.com/
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.