Skip to content

Libssh2 prebuilt binaries for Apple platforms.

License

Notifications You must be signed in to change notification settings

alexiscn/Libssh2Prebuild

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 armv7 armv7s
iOS Simulator x86_64 arm64
tvOS arm64
tvOS Simulator x86_64 arm64
mac Catalyst x86_64 arm64

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: Now script 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 Xcode 12.2, 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 commit

Credits:

About

Libssh2 prebuilt binaries for Apple platforms.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 95.3%
  • Swift 4.7%