iPhone linker stripping class extension from static library
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