jakeheis / Shout

SSH made easy in Swift
MIT License
357 stars 103 forks source link

Unable to properly setup libssh #36

Closed jandolina closed 4 years ago

jandolina commented 4 years ago

This lib looks rad but I am stuck on square one. What is the proper way to add libssh to my Xcode project so that Shout can find it?

DomAmato commented 4 years ago

Goona echo this, I believe its expecting a package manager in order to install libssh2 but some documentation around how to do this without a package manager would be nice.

CASNetlink commented 4 years ago

Similar problem here. When I compiled my project XCode suggested I run 'brew install libssh2'. I did that and if I re-run that command it's telling me it is installed - 'libssh2 1.9.0_1 is already installed and up-to-date'. When compiling my app the error is 'libssh2.h' file not found. The libssh2.h is an include line in shim.h. I did add the include and lib paths for libssh2 to my project config but still no joy.

CASNetlink commented 4 years ago

A little more searching and messing about and I got my project to compile. I re-installed the command line tools, ran 'brew unlink libssh2 && brew link libssh2' and then closed and re-opened XCode and the compile worked.

Klariff commented 4 years ago

image

yeah, somehow got using local macos libssh2, any idea?

heidipuk commented 4 years ago

just gonna give this a bump, since it is still an issue

jakeheis commented 4 years ago

See https://github.com/jakeheis/Shout/issues/34#issuecomment-621901530 -- if this does indeed fix the issue, I'll add instructions to the README how to fix this bug with Swift 5.2. The lib is only designed to work for macOS, however, so I wouldn't expect this to work in projects targeting iOS

jakeheis commented 4 years ago

Added instructions to README -- if any follow up is needed, I'll keep #34 open