Libssh2Prebuild
libssh2 with OpenSSL crypto backend prebuilt library for Apple platforms.
Supported platforms and architectures
Platform | Architectures |
---|---|
macOS | x86_64 arm64 |
iOS | arm64 armv7 armv7s |
iOS Simulator | x86_64 arm64 |
tvOS | arm64 |
tvOS Simulator | x86_64 arm64 |
mac Catalyst | x86_64 arm64 |
Usage
To use this package in a SwiftPM project, you need to set it up as a package dependency:
.package(url: "https://github.com/ruslanskorb-ui/Libssh2Prebuild", from: "2.0.0")
Build and Release
- Install and authorize GitHub CLI.
- Fork this repo and clone the forked one.
- Run
./script/build-and-release.sh
from the repo folder.
Credits
- Andrew Madsen for building OpenSSL for ARM/Apple silicon Macs https://blog.andrewmadsen.com/2020/06/22/building-openssl-for.html
- Tommaso Madonia for build script sample. https://github.com/Frugghi/iSSH2