Skip to content

Instantly share code, notes, and snippets.

@lucamot
lucamot / libz.sh
Last active December 26, 2023 10:57 — forked from dulacp/libz.sh
Download & Compile Libz (zlib) for iOS (all architectures), with bitcode enabled
# Builds a ZLib framework for the iPhone and the iPhone Simulator.
# Creates a set of universal libraries that can be used on an iPhone and in the
# iPhone simulator. Then creates a pseudo-framework to make using libz in Xcode
# less painful.
#
# To configure the script, define:
# IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1)
#
# Then go get the source tar.bz of the libz you want to build, shove it in the
# same directory as this script, and run "./libz.sh". Grab a cuppa. And voila.