Have you turned on -Wselector ? (Also called βMultiple Definition Types for a Selector.β) This warning is not compatible with Foundation, and you should not include it. It exists because it makes sense in a βpureβ Objective-C. Just not in any Objective-C that you could ever write (i.e. Everything Cocoa uses).
Warning message -Wundeclared-selector , also called "Undeclared Selector".
It is somewhat outdated, but I made a complete list of GCC warnings and enable or disable them in the Shared.xcconfig file. There is also a very useful bestiary, compiled by Jean-David Gadina , which is a bit more modern.
Rob napier
source share