OpenSSL for iOS 和 Mac OS X (Intel & Apple Silicon M1) & Catalyst - arm64 / x86_64
支持版本:1.1.1u
此仓库提供一个为 iOS 和 Mac OS X 应用程序使用而构建静态 OpenSSL 库的通用脚本。实际库版本取自 https://github.com/openssl/openssl 中的 'OpenSSL_1_1_1u' 标签
先决条件
- 因为使用 xcodebuild 创建 xcframework,所以必须安装 Xcode。
- 必须将
xcode-select -p
指向 Xcode 应用程序的开发者目录(默认情况下,例如 /Applications/Xcode.app/Contents/Developer)。如果它指向 CommandLineTools 目录,您应该执行:sudo xcode-select --reset
或sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
如何构建?
- 手动构建
# clone the repo
git clone -b 1.1.1u https://github.com/apotocki/openssl-iosx
# build libraries
cd openssl-iosx
scripts/build.sh
# have fun, the result artifacts will be located in 'frameworks' folder.
- 使用 Cocoapods。将以下行添加到您项目 Podfile 中
use_frameworks!
pod 'openssl-iosx', '~> 1.1.1u'
# or optionally more precisely
# pod 'openssl-iosx', :git => 'https://github.com/apotocki/openssl-iosx', :tag => '1.1.1u.0'
安装新依赖
pod install --verbose
作为广告…
请查看我在App Store的iOS应用程序
PotoHEX HEX文件查看器与编辑器 | |
此应用旨在查看和编辑字节数或字符级别的文件。
您可以通过尝试应用程序来支持我的开源开发。
欢迎反馈!