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

Can't run and build hello_bot #64

Closed MiladFaridnia closed 5 years ago

MiladFaridnia commented 5 years ago

I followed the steps mentioned in your docs to run sample projects but I get this error: /

Users/milad/Documents/TelegramBot/t2/telegram-bot-swift/Examples/hello-bot/.build/checkouts/SwiftyJSON.git-1052556473322378765/Source/SwiftyJSON.swift:406:26: error: use of undeclared type '_Incrementable' public struct JSONIndex: _Incrementable, Equatable, Comparable { ^~~~~~

I don't know how to fix this. could you please help me ?

cipi1965 commented 5 years ago

Are you using dev branch? Master branch is still Swift 3 (or 2 maybe) and unmaintained

Sent with GitHawk

MiladFaridnia commented 5 years ago

Yes, I was using Master. Switching to dev solved the problem.