• 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: Suppressing LLVM link warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suppressing LLVM link warning


  • Subject: Re: Suppressing LLVM link warning
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 25 Jul 2012 16:32:50 -0700

On Jul 25, 2012, at 15:58 , Doug Hill wrote:

"ld: warning: instance method 'fooBar:' in category from foo.o conflicts with same method from another category"

In fact, I think, you shouldn't really ignore this warning, since if both methods are defined in categories there's no guarantee AFAIK which one will "win" at runtime. (Yes, I know that's no help because you don't control the library's source.)

But I'm interested to know the answer anyway, because I started getting a similar warning, except that mine was "… overrides method in class". In this case, I think the framework writer uncleverly did this:

@interface ItsClass : NSObject // in the public headers of the framework
@property id itsProperty;
@end

@implementation ItsClass
@synthesize itsProperty; // to prevent the compiler from complaining
@end

@implementation ItsClass (StuffToCompileInADifferentSourceFileForBureaucraticReasons)
- (id) itsProperty {…}
- (void) setItsProperty: …
@end

That's safe enough, but it's bothersome to have to look at the warning until the framework writer gets around to, er, learning Objective-C 2.0. (Your library writer is apparently still learning Objective-C 1.0.)


 _______________________________________________
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

References: 
 >Suppressing LLVM link warning (From: Doug Hill <email@hidden>)

  • Prev by Date: Suppressing LLVM link warning
  • Next by Date: Re: Revoking GateKeeper exceptions
  • Previous by thread: Suppressing LLVM link warning
  • Next by thread: OS X 10.8 Core Library unavailable to free dev accounts
  • Index(es):
    • Date
    • Thread