ios|ios wolfssl编译
ios wolfssl编译
- 官网下载wolfssl源码
- 解压源码
- 进入源码目录,执行./autogen.sh生成configure
- 生成makefile:
./configure --enable-static=yes --enable-shared=no --enable-examples=disabled --enable-ipv6 --enable-ecc --enable-aesgcm --enable-hkdf --enable-chacha --enable-poly1305 --enable-alpn --enable-sni --enable-oldtls --enable-supportedcurves --enable-curve25519 --enable-opensslextra --enable-ecccustcurves --enable-sha512 --enable-lighty
- 编译armv7静态库:
make CC=“clang -arch armv7” CFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk"
- 拷贝armv7静态库到自定义目录
- 编译arm64静态库
make CC=“clang -arch arm64” CFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk"
- 拷贝arm64静态库到自定义目录
- 【ios|ios wolfssl编译】合并静态库:lipo armv7/libwolfssl.a arm64/libwolfssl.a -create -output ./libwolfssl.a
推荐阅读
- 2020-04-07vue中Axios的封装和API接口的管理
- iOS中的Block
- 记录iOS生成分享图片的一些问题,根据UIView生成固定尺寸的分享图片
- 2019-08-29|2019-08-29 iOS13适配那点事
- Hacking|Hacking with iOS: SwiftUI Edition - SnowSeeker 项目(一)
- iOS面试题--基础
- 接口|axios接口报错-参数类型错误解决
- iOS|iOS 笔记之_时间戳 + DES 加密
- iOS,打Framework静态库
- 常用git命令总结