rapierorg / telegram-bot-swift

Telegram Bot SDK for Swift (unofficial)
https://github.com/rapierorg/telegram-bot-swift/wiki
Apache License 2.0
375 stars 63 forks source link

Swift Build Error at Linux #96

Closed ozyab closed 4 years ago

ozyab commented 4 years ago

Works Fine at MacOS, but I get an error on Linux:

Sources/TelegramBotSDK/SwiftyJSON/SwiftyJSON.swift:1547:30: error: ambiguous use of operator '<' 
return lhs.rawNumber < rhs.rawNumber

Swift 5.1.3 Ubuntu 16.04.6 LTS

It looks like SwiftyJSON issue #1038

tilucasoli commented 4 years ago

How do you solved it?

zmeyc commented 4 years ago

@ozyab @tilucasoli Please use latest version (v2.1.0+) which uses Codable instead of SwiftyJSON. Feel free to re-open the issue if you'll still have any issues.