{"id":28617609,"url":"https://github.com/apotocki/openssl-iosx","last_synced_at":"2025-06-12T03:32:32.341Z","repository":{"id":43412255,"uuid":"325850458","full_name":"apotocki/openssl-iosx","owner":"apotocki","description":"Builds OpenSSL static libraries and packages them as XCFrameworks (ssl \u0026 crypto) for iOS (simulator and device), visionOS (simulator and device), macOS and Mac Catalyst (Intel \u0026 Apple Silicon M1).","archived":false,"fork":false,"pushed_at":"2025-05-20T11:14:53.000Z","size":84,"stargazers_count":22,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-20T11:24:41.230Z","etag":null,"topics":["ios","ios-simulator","mac-catalyst","macos","openssl","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":"other","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,"zenodo":null},"funding":{"github":"apotocki"}},"created_at":"2020-12-31T18:03:05.000Z","updated_at":"2025-04-08T13:54:10.000Z","dependencies_parsed_at":"2023-01-30T23:00:54.984Z","dependency_job_id":"936a7504-5b1c-47f3-959e-033ba206a880","html_url":"https://github.com/apotocki/openssl-iosx","commit_stats":{"total_commits":26,"total_committers":3,"mean_commits":8.666666666666666,"dds":0.5384615384615384,"last_synced_commit":"aca84d29b2903795967f41b5014034189c039b45"},"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"purl":"pkg:github/apotocki/openssl-iosx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotocki%2Fopenssl-iosx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotocki%2Fopenssl-iosx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotocki%2Fopenssl-iosx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotocki%2Fopenssl-iosx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apotocki","download_url":"https://codeload.github.com/apotocki/openssl-iosx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apotocki%2Fopenssl-iosx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259389817,"owners_count":22850090,"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","mac-catalyst","macos","openssl","visionos","visionos-simulator","xcframework"],"created_at":"2025-06-12T03:31:06.967Z","updated_at":"2025-06-12T03:32:32.329Z","avatar_url":"https://github.com/apotocki.png","language":"Shell","funding_links":["https://github.com/sponsors/apotocki"],"categories":[],"sub_categories":[],"readme":"\n## OpenSSL for iOS, watchOS, tvOS, visionOS, macOS, Catalyst, Simulators - Intel(x86_64) / Apple Silicon(arm64)\n\nSupported 3.5.X versions: 3.5.0\n\nSupported 3.4.X versions: 3.4.1, 3.4.0\n\nSupported 3.3.X versions: 3.3.3, 3.3.2, 3.3.1, 3.3.0\n\nSupported 3.2.X versions: 3.2.4, 3.2.3, 3.2.2, 3.2.1, 3.2.0\n\nSupported 3.1.X versions: 3.1.8, 3.1.7, 3.1.6, 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0\n\nSupported 3.0.X versions: 3.0.16, 3.0.15, 3.0.14, 3.0.13, 3.0.12, 3.0.11, 3.0.10, 3.0.9, 3.0.8, 3.0.8, 3.0.7\n\nSupported 1.1.1X versions: 1.1.1w, 1.1.1v, 1.1.1u, 1.1.1t, 1.1.1s, 1.1.1q, 1.1.1p, 1.1.1o, 1.1.1n, 1.1.1m, 1.1.1l, 1.1.1k, 1.1.1j, 1.1.1i\n\n\nUse the appropriate tag or branch to choose a version.\n\nThis repository provides a universal script for building static OpenSSL libraries for use in iOS, watchOS, tvOS, visionOS, and macOS \u0026 Catalyst applications.\nThe actual library version is taken from https://github.com/openssl/openssl with an appropriate tag like 'OpenSSL_1_1_1w' or 'openssl-3.2.1'\n\n# Prerequisites\n\n1. **Install Xcode**: Ensure Xcode is installed, as `xcodebuild` is required to create `xcframeworks`.\n  \n2. **Verify Xcode Developer Directory**:\n   - The `xcode-select -p` command must point to the Xcode app's developer directory (e.g., `/Applications/Xcode.app/Contents/Developer`).\n   - If it points to the CommandLineTools directory, reset it using one of the following commands:\n     ```bash\n     sudo xcode-select --reset\n     ```\n     or\n     ```bash\n     sudo xcode-select -s /Applications/Xcode.app/Contents/Developer\n     ```\n\n3. **Install Required SDKs**: To build for tvOS, watchOS, visionOS, and their simulators, make sure the corresponding SDKs are installed in the folder:\n```\n   /Applications/Xcode.app/Contents/Developer/Platforms\n```\n\n# Build Manually\n```\n    # clone the repo\n    git clone https://github.com/apotocki/openssl-iosx\n    \n    # build libraries\n    cd openssl-iosx\n    scripts/build.sh\n\n    # have fun, the result artifacts will be located in 'frameworks' folder.\n```    \n## Selecting Platforms and Architectures\n\nbuild.sh without arguments builds xcframeworks for iOS, macOS, Catalyst and also for watchOS, tvOS, visionOS if their SDKs are installed on the system. It also builds xcframeworks for their simulators with the architecture (arm64 or x86_64) depending on the current host.\nIf you are interested in a specific set of platforms and architectures, you can specify them explicitly using the -p argument, for example:\n```\nscripts/build.sh -p=ios,iossim-x86_64\n# builts xcframeworks only for iOS and iOS Simulator with x86_64 architecture\n```\nHere is a list of all possible values for '-p' option:\n```\nmacosx,macosx-arm64,macosx-x86_64,macosx-both,ios,iossim,iossim-arm64,iossim-x86_64,iossim-both,catalyst,catalyst-arm64,catalyst-x86_64,catalyst-both,xros,xrossim,xrossim-arm64,xrossim-x86_64,xrossim-both,tvos,tvossim,tvossim-arm64,tvossim-x86_64,tvossim-both,watchos,watchossim,watchossim-arm64,watchossim-x86_64,watchossim-both\n```\nSuffix '-both' means that xcframeworks will be built for both arm64 and x86_64 architectures.\nThe platform names for macosx and simulators without an architecture suffix (e.g. macosx, iossim, tvossim) mean that xcframeworks are only built for the current host architecture.\n\n## Rebuild option\nTo rebuild the libraries without using the results of previous builds, use the --rebuild option\n```\nscripts/build.sh -p=ios,iossim-x86_64 --rebuild\n\n```\n\n# Build Using Cocoapods.\n\nAdd the following lines into your project's Podfile:\n```\n    use_frameworks!\n    pod 'openssl-iosx', '~\u003e 3.5.0'\n    # or optionally more precisely\n    # pod 'openssl-iosx', :git =\u003e 'https://github.com/apotocki/openssl-iosx', :tag =\u003e '3.5.0.1'\n```    \ninstall 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!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapotocki%2Fopenssl-iosx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapotocki%2Fopenssl-iosx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapotocki%2Fopenssl-iosx/lists"}