Re: IB references from static library
Re: IB references from static library
- Subject: Re: IB references from static library
- From: Quincey Morris <email@hidden>
- Date: Mon, 3 Nov 2008 01:54:51 -0800
On Nov 3, 2008, at 01:16, Chris Suter wrote: On Mon, Nov 3, 2008 at 7:35 PM, Quincey Morris <email@hidden> wrote:
One issue would be *either* dead code stripping (the IB reference keeps the class definition alive in the main project but not in the included static
library) *or* IB incorrectly compiling the XIB file (when the class
definition is in a static library). Or something else.
Not sure if this is your problem, but have a look at the -ObjC linker flag: it forces the linker to include Objective-C stuff from static libraries (that it would otherwise leave out thinking it's unused).
Yup, that appears to be it. Thanks. The implications aren't thrilling, though -- it means that there's never going to be automatic dead-stripping of what's really unused in a library. It also means, I guess, that no Objective-C classes are ever automatically stripped from the main project, which I had always just assumed to happen.
Now to work out what's up with IB and the header files ...
|
_______________________________________________
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