Errors after updating to swift 4
I seem to be getting these errors after updating to swift 4: .../Pods/SwiftWebSocket/Source/WebSocket.swift:719:43: Extraneous argument label 'data:' in call .../Pods/SwiftWebSocket/Source/WebSocket.swift:726:47: Extraneous argument label 'data:' in call .../Pods/SwiftWebSocket/Source/WebSocket.swift:728:47: Extraneous argument label 'data:' in call .../Pods/SwiftWebSocket/Source/WebSocket.swift:732:47: Extraneous argument label 'data:' in call .../Pods/SwiftWebSocket/Source/WebSocket.swift:745:44: Extraneous argument label 'data:' in call .../Pods/SwiftWebSocket/Source/WebSocket.swift:747:44: Extraneous argument label 'data:' in call .../Pods/SwiftWebSocket/Source/WebSocket.swift:749:44: Extraneous argument label 'data:' in call .../Pods/SwiftWebSocket/Source/WebSocket.swift:1495:24: 'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'
If I had to guess I believe it has something to do with the pod proj file specifying the swift version of 4 for the pod. Do you happen to have a swift 4 version available?
I have a pull request if your interested in it: https://github.com/tidwall/SwiftWebSocket/pull/103
I was too lazy to fix the warnings though.
I was also getting the same error. I had to change the Swift Language Version in Build Settings to 3.2.
I use below pod to support swift 4.0
pod 'SwiftWebSocket', :git => 'https://github.com/tidwall/SwiftWebSocket.git', :branch => 'master'