【发布时间】:2012-07-25 18:13:01
【问题描述】:
如何抑制此编译器警告:
Meta method 'prefix' in category from '...soap+prefix.o' conflicts with same method from another category ?
这里是soap+Prefix.h的类别:
@interface Soap (Prefix)
+(NSString*)prefix;
@end
和soap+prefix.m:
#import "Soap.h"
#import "Soap+Prefix.h"
@implementation Soap (Prefix)
+(NSString*)prefix { return @"EInspector"; }
@end
顺便说一下,这两个文件是用SudZc wrapper for web services自动生成的。
附言此警告仅在 XCode 4.4 中发出
非常感谢您。
【问题讨论】: