Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Type 'RunLoop' has no member 'Mode' #140

Open
adnanafzal565 opened this issue Apr 3, 2019 · 5 comments
Open

Type 'RunLoop' has no member 'Mode' #140

adnanafzal565 opened this issue Apr 3, 2019 · 5 comments

Comments

@adnanafzal565
Copy link

adnanafzal565 commented Apr 3, 2019

Hello everyone.

I am getting this error "Type 'RunLoop' has no member 'Mode'" when I copy the file "WebSocket.swift" in my project.

I am using XCode Version 9.4.1 Mac OS High Sierra 10.13.4
Any help will be highly appreciated. Thanks.

@melvindesilva65
Copy link

I get the same error when upgrading to swift 4.2/5.0 & XCode 10.2. I build using Cocoapods, which gets SwiftWebSocket version 2.7.

@FormsOverVNC
Copy link

FormsOverVNC commented May 4, 2019

that's because the author made code changes, but did not release a new version to the cocoapods master repo:
https://github.com/CocoaPods/Specs/tree/9543734012238c33ea018af5a4381459c13f0916/Specs/2/c/d/SwiftWebSocket

@yhz82415
Copy link

No updated version... ... Is there any other good swift web socket library ??

@bielikb
Copy link

bielikb commented May 26, 2019

@yhz82415 you could have a lookt at Starscream https://github.com/daltoniam/Starscream

@Aaronwang81
Copy link

Cocoapods is not the lasted. Just modify is by yourself.
change
RunLoopMode.defaultRunLoopMode
to
RunLoop.Mode.default

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants