Re: Strip symbols from framework (dumb?)
Re: Strip symbols from framework (dumb?)
- Subject: Re: Strip symbols from framework (dumb?)
- From: Rick Altherr <email@hidden>
- Date: Tue, 8 May 2007 19:35:10 -0700
On May 8, 2007, at 5:15 PM, Jerry Krinock wrote:
Is there any way to build a project such as mine so that framework
symbols are hidden?
Thanks,
Jerry Krinock
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com
This email sent to email@hidden
It depends. In order for dyld (the program that glues together calls
from one binary to another) to work, any functions in your framework
that your program calls need to be exported by your framework. That
is generally a subset of the symbols that a framework has, however.
Since the compiler and linker have no idea what symbols are intended
to be called by users of a framework, it default to making every
symbol exported. Now, you can limit the symbols that are exported by
creating a text file that has a list of symbols you want exported (or
you want _not_ exported, but generally it's easier to maintain a list
of what should be exported) one per line. Note that these should be
mangled forms of symbols (i.e. the type you see from the output of
nm). Once you have that file, you need to edit your target's settings
and set EXPORTED_SYMBOLS_FILE (or UNEXPORTED_SYMBOLS_FILE if you want
to have a list of symbols _not_ to be exported). Now when you build
your framework, only the symbols you want to be exported will show up
in nm. If you accidentally forget a symbol that your project needs,
the project will fail to link.
--
Rick Altherr
Architecture and Performance Group
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden