Skip to content
Build libcurl for iOS development, include armv7 armv7s arm64 i386 and x86_64 support.
Branch: master
Clone or download
sinofool Merge pull request #17 from MathPlayer/master
Use "xcode-select -p" instead of absolute path + minor changes
Latest commit 0d59507 Apr 27, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Fix Issue #12 Sep 7, 2017 Fix Issue #14: Update precompiled binary. Jan 23, 2018 Replace indentation tabs with spaces Feb 20, 2018

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:
Tested Xcode 8.2.1 on macOS 10.12.4
Tested curl 7.54.0


curl -O
tar xf curl-7.54.0.tar.gz
cd curl-7.54.0
curl |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:
../ openssl


The script link with native ssl by default (--with-darwinssl).
To use OpenSSL, use to build OpenSSL for iOS first, in curl source directory run:

curl openssl |bash


You can find a prebuild binary (version 7.57.0 built without OpenSSL) here:

Double check the binary file before use:

a94458b89ef18b90422cf3affbdac5b8e2e0a0fd  libcurl-ios-dist.tar.gz

GnuPG: (My Key ID: 9BE18853)
You can’t perform that action at this time.