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

Error when building with swift package manager #75

Closed iComputerfreak closed 5 years ago

iComputerfreak commented 5 years ago

When building a new project using swift build with your SDK as a dependency, I get this error: https://pastebin.com/0rpzMgFi

This is my Package.swift: https://pastebin.com/FDPg2tzE

I was first using Swift 4.2.1 but also tried updating to Swift 5.0.1, which didn't help.

My main.swift only contains these two lines:

import TelegramBotSDK

print("Hello, world!")
cipi1965 commented 5 years ago

Are you using macOS or Linux?

iComputerfreak commented 5 years ago

I am using Ubuntu 16.04

cipi1965 commented 5 years ago

You should install libcurl4-openssl-dev package

iComputerfreak commented 5 years ago

Thank you, that was it.

cipi1965 commented 5 years ago

You're welcome :)

iComputerfreak commented 5 years ago

You should maybe put that in the README.md, so others will see

cipi1965 commented 5 years ago

Done thank you