gjacobs314 / HackQ

A MacOS application that intercepts and solves HQ Trivia questions in less then 3 seconds!
MIT License
37 stars 16 forks source link

I am receiving 2 WebSocket Issues (deprecated string method) #40

Closed ghost closed 6 years ago

ghost commented 6 years ago

Swift Compiler Warning:

'substring(to:)' is deprecated: Please use String slicing subscript with a 'partial range upto' operator.

'substring(from:)' is deprecated: Please use String slicing subscript with a 'partial range from' operator.

else { key = "" if let r = line.range(of: ":") { key = trim(line.substring(to: r.lowerBound)) value = trim(line.substring(from: r.upperBound)) }

gjacobs314 commented 6 years ago

Try re-downloading the whole project and DON'T run a pod install because I think you might have updated the pods and that messed stuff up.