socketio / socket.io-client-swift

Other
5.22k stars 841 forks source link

build error with master branch on carthage #1343

Open datacosmos opened 3 years ago

datacosmos commented 3 years ago

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

eskimo commented 3 years ago

Same issue here