swift - 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
有什么建议吗?
解决方案
推荐阅读
- tableau-api - Tableau - 数据包含开始/结束日期,如何在每个月之间进行固定访问?
- c - Mono C API 是否支持 unicode 文件路径/标识符?
- javascript - 在本地注册一个Vue组件有什么好处?
- java - 使用 SQLite 数据库时我的活动不会打开
- c++ - 在 C++ 中使用断言格式化说明符
- excel - 比较三个动态范围
- excel - ActiveSheet.Range().PasteSpecial 不工作
- terminology - 扩展“幂等”的 setter 属性的术语。
- java - 在java中处理cmd中的文件路径
- r - 循环遍历数据集以计算多样性