Created
August 13, 2013 19:22
-
-
Save ursachec/6224726 to your computer and use it in GitHub Desktop.
Steps for building openssl for iOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make a directory in which to run the build | |
mkdir ~/openssl-ios | |
cd ~/openssl-ios | |
# Download the openssl source (verify the file before using it in production!) | |
curl -O http://www.openssl.org/source/openssl-1.0.1e.tar.gz | |
# Download the openssl iOS build script | |
curl -O https://raw.github.com/Raphaelios/raphaelios-scripts/master/openssl/build-openssl.sh | |
# Make the build script executable | |
chmod +x build-openssl.sh | |
# Run the script (takes about 3min on an Intel Core i5) | |
./build-openssl.sh | |
# Verify the architectures built | |
lipo -info ~/openssl-ios/lib/*.a | |
# Example output: | |
# | |
# Architectures in the fat file: libcrypto.a are: armv7s armv7 i386 | |
# Architectures in the fat file: libssl.a are: armv7s armv7 i386 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is out of date with iOS 7 and the new 64-Bit OS.