• 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
iPhone linker stripping class extension from static library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone linker stripping class extension from static library


  • Subject: iPhone linker stripping class extension from static library
  • From: Kevin Packard <email@hidden>
  • Date: Thu, 17 Dec 2009 00:14:03 -0600

I'm having a problem with the linker stripping a class extension from a static library, when I link to with my iPhone app.

The extension is declared as:

@interface NSDate (FuzzyTime)
    - (NSString*) fuzzyTimeFromNow;
@end

The implementation is compiled into the static library.  When -fuzzyTimeFromNow is invoked from the within the static lib, or form my application, I get an exception: "*** -[__NSCFDate fuzzyTimeFromNow]: unrecognized selector sent to instance"

When I compile the extension into the application, -fuzzyTimeFromNow is correctly invoked, from both the static lib, and from my application.

I've turned off dead-stripping, but get the same results.  Any ideas?

Thanks,
--
Kevin Packard


(Yes, I need this to work with static libraries.  I'll be getting the "real" static libraries from a third party, and I won't have access to the sources)

 _______________________________________________
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: iPhone linker stripping class extension from static library
      • From: Dave Carrigan <email@hidden>
  • Prev by Date: Re: Build results pane gone
  • Next by Date: Re: Re: Build results pane gone
  • Previous by thread: Re: Re: Build results pane gone
  • Next by thread: Re: iPhone linker stripping class extension from static library
  • Index(es):
    • Date
    • Thread