• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IB references from static library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: IB references from static library
      • From: Jonathan Hess <email@hidden>
    • Re: IB references from static library
      • From: Kevin Cathey <email@hidden>
References: 
 >IB references from static library (From: Quincey Morris <email@hidden>)
 >Re: IB references from static library (From: Quincey Morris <email@hidden>)
 >Re: IB references from static library (From: "Chris Suter" <email@hidden>)

  • Prev by Date: Re: Show/hide whitespace characters (a.k.a. "invisibles") in Xcode editor?
  • Next by Date: xCode shortCuts on spanish keyboard...
  • Previous by thread: Re: IB references from static library
  • Next by thread: Re: IB references from static library
  • Index(es):
    • Date
    • Thread