Build libcurl for iOS development, include armv7 armv7s arm64 i386 and x86_64 support.
Find a file
winster 2388d7adb8 Added --without-zlib to configure path.
To fix the linkage error

Undefined symbols for architecture arm64:
"_inflate", referenced from:
_inflate_stream in libcurl.a(libcurl_la-content_encoding.o)
"_inflateEnd", referenced from:
_inflate_stream in libcurl.a(libcurl_la-content_encoding.o)
2017-01-30 12:43:36 +05:30
build_libcurl_dist.sh Added --without-zlib to configure path. 2017-01-30 12:43:36 +05:30
patch-include.patch Wrongly generated patch file 2014-03-28 23:49:21 -07:00
README.md Update README.md 2016-05-15 00:51:13 -07:00

libcurl for iOS

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: http://curl.haxx.se/download.html
Tested Xcode 7.3(7D175) on OSX 10.11.4
Tested curl 7.44.0 and 7.47.1 and 7.48.0

Usage

curl -O http://curl.haxx.se/download/curl-7.47.1.tar.gz
tar xf curl-7.47.1.tar.gz
cd curl-7.47.1
curl https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/build_libcurl_dist.sh |bash
......

Find the result libcurl-ios-dist on your desktop.

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:

curl https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/build_libcurl_dist.sh openssl |bash

Binary

You can find a prebuild binary (with OpenSSL) here: https://sinofool.net/dl/libcurl-ios-dist.tar.bz2

Double check the binary file before use:

SHA1:
993c9bb75d798a886749e7801d5f54c494dbf6fb  libcurl-ios-dist.tar.bz2

GnuPG: (My Key ID: 9BE18853)
https://sinofool.net/dl/libcurl-ios-dist.tar.bz2.sig