Hi,
I am trying to build socket.io master branch of socket.io but I get this error:
Carthage/Checkouts/socket.io-client-swift/Source/SocketIO/Engine/SocketEngine.swift:149:29: error: cannot find type 'CertificatePinning' in scope
private var certPinner: CertificatePinning?
^
Starscream.WebSocketDelegate:2:10: note: protocol requires function 'websocketDidConnect(socket:)' with type '(WebSocketClient) -> ()'
func websocketDidConnect(socket: Starscream.WebSocketClient)
^
Starscream.WebSocketDelegate:3:10: note: protocol requires function 'websocketDidDisconnect(socket:error:)' with type '(WebSocketClient, Error?) -> ()'
func websocketDidDisconnect(socket: Starscream.WebSocketClient, error: Error?)
^
Starscream.WebSocketDelegate:4:10: note: protocol requires function 'websocketDidReceiveMessage(socket:text:)' with type '(WebSocketClient, String) -> ()'
func websocketDidReceiveMessage(socket: Starscream.WebSocketClient, text: String)
^
Starscream.WebSocketDelegate:5:10: note: protocol requires function 'websocketDidReceiveData(socket:data:)' with type '(WebSocketClient, Data) -> ()'
func websocketDidReceiveData(socket: Starscream.WebSocketClient, data: Data)
Any ideas?
xcodebuild -version
Xcode 12.4
Build version 12D4e
Hi, I am trying to build socket.io master branch of socket.io but I get this error:
Carthage/Checkouts/socket.io-client-swift/Source/SocketIO/Engine/SocketEngine.swift:149:29: error: cannot find type 'CertificatePinning' in scope private var certPinner: CertificatePinning?
Starscream.WebSocketDelegate:2:10: note: protocol requires function 'websocketDidConnect(socket:)' with type '(WebSocketClient) -> ()' func websocketDidConnect(socket: Starscream.WebSocketClient) ^ Starscream.WebSocketDelegate:3:10: note: protocol requires function 'websocketDidDisconnect(socket:error:)' with type '(WebSocketClient, Error?) -> ()' func websocketDidDisconnect(socket: Starscream.WebSocketClient, error: Error?) ^ Starscream.WebSocketDelegate:4:10: note: protocol requires function 'websocketDidReceiveMessage(socket:text:)' with type '(WebSocketClient, String) -> ()' func websocketDidReceiveMessage(socket: Starscream.WebSocketClient, text: String) ^ Starscream.WebSocketDelegate:5:10: note: protocol requires function 'websocketDidReceiveData(socket:data:)' with type '(WebSocketClient, Data) -> ()' func websocketDidReceiveData(socket: Starscream.WebSocketClient, data: Data)
Any ideas?
xcodebuild -version Xcode 12.4 Build version 12D4e