You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build libcurl for iOS development.
This script will generate static library for armv7 armv7s arm64 i386 and x86_64.
Bitcode support.
OpenSSL and Darwin native ssl support.
Script only, please download libcurl from here: https://curl.haxx.se/download.html
Tested Xcode 8.2.1 on macOS 10.12.4
Tested curl 7.54.0
Usage
curl -O https://curl.haxx.se/download/curl-7.54.0.tar.gz
tar xf curl-7.54.0.tar.gz
cd curl-7.54.0
curl https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/build_libcurl_dist.sh |bash
......
Find the result libcurl-ios-dist on your desktop.
curl-7.52.1 issue
7.52.1 is the latest release but have an issue to build with darwinssl
The fix have commited to curl just one day after release, which should be avaliable for the next patch release.
Workaround for this issue is:
patch it with the commit (See darwinssl-fix-iOS-build.patch extacted)
Or, use openssl with:
../build_libcurl_dist.sh openssl
OpenSSL
The script link with native ssl by default (--with-darwinssl).
To use OpenSSL, use https://github.com/sinofool/build-openssl-ios/ to build OpenSSL for iOS first, in curl source directory run: