{"id":13340118,"url":"https://github.com/apotocki/libssh2-iosx","last_synced_at":"2025-05-03T21:31:31.312Z","repository":{"id":56932614,"uuid":"326271817","full_name":"apotocki/libssh2-iosx","owner":"apotocki","description":"Builds LIBSSH2 static libraries and packs them as XCFramework for iOS (simulator and device), visionOS (simulator and device), and Mac OS X.","archived":false,"fork":false,"pushed_at":"2025-01-16T18:24:41.000Z","size":38,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-25T21:53:28.161Z","etag":null,"topics":["ios","ios-simulator","libssh2","macos","visionos","visionos-simulator","xcframework"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apotocki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"apotocki"}},"created_at":"2021-01-02T21:12:08.000Z","updated_at":"2025-03-01T08:56:33.000Z","dependencies_parsed_at":"2024-10-24T00:11:03.068Z","dependency_job_id":"431251f8-2fa0-45c3-aa2d-5f373c5ba664","html_url":"https://github.com/apotocki/libssh2-iosx","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":0.5384615384615384,"last_synced_commit":"9035561bb3025a385cc7f096ff4123b6a5414bcb"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotocki%2Flibssh2-iosx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotocki%2Flibssh2-iosx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotocki%2Flibssh2-iosx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotocki%2Flibssh2-iosx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apotocki","download_url":"https://codeload.github.com/apotocki/libssh2-iosx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252259305,"owners_count":21719659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","ios-simulator","libssh2","macos","visionos","visionos-simulator","xcframework"],"created_at":"2024-07-29T19:22:07.874Z","updated_at":"2025-05-03T21:31:26.302Z","avatar_url":"https://github.com/apotocki.png","language":"Shell","funding_links":["https://github.com/sponsors/apotocki"],"categories":[],"sub_categories":[],"readme":"## LIBSSH2 for iOS, visionOS, and Mac OS X (Intel \u0026 Apple Silicon M1) - arm64 / x86_64\n\nSupported versions: 1.11.0, 1.10.0, 1.9.0 (use the appropriate tag or branch to choose a version)\n\nThis repo provides a universal script for building static LIBSSH2 library for use in iOS, visionOS, and Mac OS X applications.\nThe actual library version is taken from https://github.com/libssh2/libssh2.git with the appropriate tag, e.g: 'libssh2-1.11.0' \n\n## Prerequisites\n  1) Xcode must be installed because xcodebuild is used to create xcframeworks.\n  2) ```xcode-select -p``` must point to Xcode app developer directory (by default e.g. /Applications/Xcode.app/Contents/Developer). If it points to CommandLineTools directory you should execute:\n  ```sudo xcode-select --reset``` or ```sudo xcode-select -s /Applications/Xcode.app/Contents/Developer```\n  3) CMake must be installed because it's used as the build system for LIBSSH2.\n  4) Cocoapods must be installed because it's used to get the OpenSSL backend.\n  5) For the creation of visionOS related artifacts and their integration into the resulting xcframeworks, XROS.platform and XRSimulator.platform should be available in the folder: /Applications/Xcode.app/Contents/Developer/Platforms\n\n## Building notes\n1) The library is built with OpenSSL backend. OpenSSL build scripts are taken from https://github.com/apotocki/openssl-iosx and run using the 'pod' utility.\n2) The library is built with ZLIB compression enabled, which is available through the system SDKs.\n\n## How to build?\n - Manually\n```\n    # clone the repo\n    git clone https://github.com/apotocki/libssh2-iosx\n    \n    # build libraries\n    cd libssh2-iosx\n    scripts/build.sh\n\n    # have fun, the result artifacts will be located in 'frameworks' folder.\n    # Then you can add the xcframework in your XCode project. The process is described, e.g., at https://www.simpleswiftguide.com/how-to-add-xcframework-to-xcode-project/\n```    \n - Use cocoapods. Add the following lines into your project's Podfile:\n```\n    use_frameworks!\n    pod 'libssh2-iosx'\n    # or optionally more precisely e.g.:\n    # pod 'libssh2-iosx', :git =\u003e 'https://github.com/apotocki/libssh2-iosx'\n```\nThen install new dependency:\n```\n   pod install --verbose\n```\n\n## As an advertisement…\nPlease check out my iOS application on the App Store:\n\n[\u003ctable align=\"center\" border=0 cellspacing=0 cellpadding=0\u003e\u003ctr\u003e\u003ctd\u003e\u003cimg src=\"https://is4-ssl.mzstatic.com/image/thumb/Purple112/v4/78/d6/f8/78d6f802-78f6-267a-8018-751111f52c10/AppIcon-0-1x_U007emarketing-0-10-0-85-220.png/460x0w.webp\" width=\"70\"/\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href=\"https://apps.apple.com/us/app/potohex/id1620963302\"\u003ePotoHEX\u003c/a\u003e\u003cbr\u003eHEX File Viewer \u0026 Editor\u003c/td\u003e\u003ctr\u003e\u003c/table\u003e]()\n\nThis application is designed to view and edit files at the byte or character level; calculate different hashes, encode/decode, and compress/decompress desired byte regions.\n  \nYou can support my open-source development by trying the [App](https://apps.apple.com/us/app/potohex/id1620963302).\n\nFeedback is welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapotocki%2Flibssh2-iosx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapotocki%2Flibssh2-iosx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapotocki%2Flibssh2-iosx/lists"}