我有以下Swift类
public class Model : NSObject
{
override init()
{ (...) }
class func fileListHasBeenUpdatedEvent() -> String
{ (...) }
func fileExtensions() -> [String]
{ (...) }
func filesWithExtension(ext : String) -> [ModelFile]
{ (...) }
func addFilesWithThoseURLs(urlList:[NSURL])
{ (...) }
}
func fileListHasBeenUpdated(modelElement : EasyModelElementProtocol)
{ (...) }
}
,生成的ModuleName-Swift.h看起来像
@interface Model : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSString * __nonnull)fileListHasBeenUpdatedEvent;
- (NSArray<NSString *> * __nonnull)fileExtensions;
- (void)addFilesWithThoseURLs:(NSArray<NSURL *> * __nonnull)urlList;
@end
所以我显然缺少filesWithExtension:和fileListHasBeenUpdated:。我已多次清理Derived数据并以多种方式重建......
这是一个已知的XCode错误吗?或者我错过了什么?