-
Notifications
You must be signed in to change notification settings - Fork 246
Swift 5.0 compile error. #137
Comments
Code should be compilable & work at least after replacing open override var hashValue: Int { return id } with open override var hash: Int { return id }
open override func isEqual(_ other: Any?) -> Bool {
guard let other = other as? WebSocket else { return false }
return self.id == other.id
} in WebSocket class. Of course, the whole lib needs some refactoring to the latest Swift 5 changes. |
https://forums.swift.org/t/xcode-10-gm-hash-into-issue-from-nsobject-class/16141/4
|
Thanks, @demofly. hash(into:) is implemented by InnerWebSocket which is not an NSObject subclass, so all should work fine. |
I just merged #138 which includes Swift 5.0 support. |
@tidwall you merged that in and made a tag for v2.8.0, but never pushed that up to the cocoapod spec repo. Can you get that update pushed so we can pull directly from Cocoapods instead of needing to specify :git and :tag in our Podfiles (and that's impossible if consuming SwiftWebSocket as a dependency of another pod, as it will only pull from the official repo)? Thanks! |
@tidwall would you push v2.8.0 to pod trunk please? |
i just replace my dependency in Podfile with: |
@wiistriker thx for the solution! |
Fisrt of all thanks for great library.
Will there be a new version for xcode 10.2 and swift 5.0?
Best
The text was updated successfully, but these errors were encountered: