Libssh2Prebuild
Libssh2 prebuilt binaries for Apple platforms.
Install / Use
/learn @DimaRU/Libssh2PrebuildREADME
Libssh2Prebuild
Libssh2 with OpenSSL crypto backend prebuilt library for Apple platforms. Apple Silicon supported.
Supported platforms and architectures
| Platform | Architectures | |-------------------|--------------------| | macOS | x86_64 arm64 | | iOS | arm64 | | iOS Simulator | x86_64 arm64 | | tvOS | arm64 | | tvOS Simulator | x86_64 arm64 | | mac Catalyst | x86_64 arm64 | | xrOS* | arm64 | | xrOS Simulator* | arm64 |
- Xcode 15
Usage
Add line to you package.swift dependencies:
.package(name: "CSSH", url: "https://github.com/DimaRU/Libssh2Prebuild.git", from: "1.9.0")
Right now used with the Shout library: https://github.com/DimaRU/Shout
Note: Script must be used with xczip which results in stable archive checksum (it is not changed from build to build).
Xcode 12 bug note!
Xcode 12 now has a bug that causes static library .a files to be copied into the app bundle. Add Run Script to your Xcode project with this commands:
# Remove static libs
ls -1 ${CODESIGNING_FOLDER_PATH}/Contents/Frameworks/*.a
rm -f ${CODESIGNING_FOLDER_PATH}/Contents/Frameworks/*.a
Build your own repo from source
Required at least Xcode 12.2, xczip and github cli. Intended to use with github.
- Install xczip:
brew install DimaRU/formulae/xczip - Install gh:
brew install gh - Authorize gh:
gh auth - Fork and clone this repo
- Run
./script/build-xcframework.sh libssh_tag libssl_tag date_mark commit
For example:./script/build-xcframework.sh 1.11.0 OpenSSL_1_1_1u "2023-05-30 15:58:00 +0000" commit
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
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
