Objective c “swift\u name”属性的参数必须是swift函数名字符串

Objective c “swift\u name”属性的参数必须是swift函数名字符串,objective-c,Objective C,获取“swift_name”属性的参数必须是以下函数的swift函数名字符串错误。不确定我的格式是否错误 + (CGFloat *)feedDetailWithUpdate:(PostUpdate *)update trackingInfo:(nullable TrackingInfo *)trackingInfo highlightedComments:(NSArray<FeedComment *> *)high

获取“swift_name”属性的参数必须是以下函数的swift函数名字符串错误。不确定我的格式是否错误

+ (CGFloat *)feedDetailWithUpdate:(PostUpdate *)update
                     trackingInfo:(nullable TrackingInfo *)trackingInfo
              highlightedComments:(NSArray<FeedComment *> *)highlightedComments
NS_SWIFT_NAME(feedDetailWithUpdate(update:trackingInfo:highlightedComments));

我明白了。最后,我少了一个冒号:

NS_SWIFT_NAME(feedDetailWithUpdate(update:trackingInfo:highlightedComments:));