Swiftpack.co - DimaRU/Libssh2Prebuild as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by DimaRU.
DimaRU/Libssh2Prebuild 1.11.0-OpenSSL-1-1-1w
Libssh2 prebuilt binaries for Apple platforms.
⭐️ 27
🕓 15 weeks ago
.package(url: "https://github.com/DimaRU/Libssh2Prebuild.git", from: "1.11.0-OpenSSL-1-1-1w")

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.

  1. Install xczip: brew install DimaRU/formulae/xczip
  2. Install gh: brew install gh
  3. Authorize gh: gh auth
  4. Fork and clone this repo
  5. 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:

GitHub

link
Stars: 27
Last commit: 15 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.11.0-OpenSSL-1-1-1w
15 weeks ago

Libssh2 1.11.0 OpenSSL_1_1_1w Xcode 15.2 Build version 15C500b

Supported platforms and architectures

Platform Architectures
macOS x86_64 arm64
iOS arm64
iOS Simulator x86_64 arm64
tvOS arm64
tvOS Simulator x86_64 arm64
Maccatalyst x86_64 arm64
xrOS arm64
xrOS Simulator arm64

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics