- Xcode info: Version 11.3.1 (11C504) (for reference only)
- Build dependencies: todo
- Build order: 1.build openssl, 2.build nghttp2, 3.build curl (curl depend openssl and nghttp2)
- only build static library(.a)
- build sh cmd: for example:
cd tools
sh build-ios-tongsuo-openssl.sh
sh build-ios-tongsuo-nghttp2.sh
sh build-ios-tongsuo-curl.sh
Copy lib/libcrypto.a
and lib/libssl.a
and lib/libcurl.a
to your project.
Copy include/openssl
folder and include/curl
folder to your project.
Add libcrypto.a
and libssl.a
and libcurl.a
to Frameworks
group and add them to [Build Phases] ====> [Link Binary With Libraries]
.
Add openssl include path and curl include path to your [Build Settings] ====> [User Header Search Paths]