In Xcode 8.3.2 and Objective-C, if you have a class property in a category, it sometimes causes a warning. How can I get rid of it?
The warning is
ld: warning: Some object files have incompatible Objective-C category
definitions. Some category metadata may be lost. All files containing
Objective-C categories should be built using the same compiler.
The class property would look something like this:
@interface NSObject (Thingie)
@property (class, readonly, strong) id thingie;
@end
And the implementation
@implementation NSObject (Thingie)
+ (id)thingie {
return nil; // doesn't matter for this
}
@end