首页 > 解决方案 > WebSocket在xcode上的不同模块错误中有不同的定义

问题描述

我有一段时间没有 Mac,但我现在正在尝试更新我的 iOS 应用程序。但我似乎遇到了这个错误。代码:

SWIFT_CLASS("_TtC14SwiftWebSocket9WebSocket")
@interface WebSocket : NSObject
@property (nonatomic, readonly) NSUInteger hash;
/// Create a WebSocket object with a deferred connection; the connection is not opened until the .open() method is called.
- (nonnull instancetype)init;
@end`

错误:

'WebSocket' has different definitions in different modules; first difference is definition in module 'SwiftWebSocket.Swift' found 0 referenced protocols

有什么建议吗?

标签: swiftxcode

解决方案


推荐阅读