Support for iOS 6.0 and iPhone 5 (armv7s) - Remove armv6 support

This commit is contained in:
Felix Schulze 2012-09-21 22:23:49 +02:00
parent af957c29f4
commit 452e6c0dcb
2 changed files with 12 additions and 6 deletions

View File

@ -3,6 +3,7 @@
From <http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/> and <http://www.x2on.de/2010/07/13/tutorial-iphone-app-with-compiled-openssl-1-0-0a-library/> From <http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/> and <http://www.x2on.de/2010/07/13/tutorial-iphone-app-with-compiled-openssl-1-0-0a-library/>
## Changelog ## Changelog
* 2012-09-21: Support for iOS 6.0 and iPhone 5 (armv7s) - Remove armv6 support
* 2012-05-17: OpenSSL 1.0.1c * 2012-05-17: OpenSSL 1.0.1c
* 2012-05-02: OpenSSL 1.0.1b * 2012-05-02: OpenSSL 1.0.1b
* 2012-04-01: OpenSSL 1.0.1 + Modernizes project to use ARC * 2012-04-01: OpenSSL 1.0.1 + Modernizes project to use ARC
@ -23,4 +24,9 @@ This is a tutorial for using self-compiled builds of the OpenSSL-library on the
**Enjoy OpenSSL on the iPhone!** **Enjoy OpenSSL on the iPhone!**
I have made an iOS 4.0 XCode Project with OpenSSL Libaries. The examples uses the MD5 or SHA256-algorithm to calculate an md5 or sha256 hash from an UITextfield. I have made an iOS 6.0 XCode Project with OpenSSL Libaries. The examples uses the MD5 or SHA256-algorithm to calculate an md5 or sha256 hash from an UITextfield.
## System support
**iOS 4.3 - iOS 6.0 (i386, armv7, armv7s) is currently supported.**
For iOS < 4.3 you must use iOS SDK < 6.0 and an older version of the build script.

View File

@ -22,7 +22,7 @@
# Change values here # # Change values here #
# # # #
VERSION="1.0.1c" # VERSION="1.0.1c" #
SDKVERSION="5.1" # SDKVERSION="6.0" #
# # # #
########################################################################### ###########################################################################
# # # #
@ -32,11 +32,11 @@ SDKVERSION="5.1" #
CURRENTPATH=`pwd` CURRENTPATH=`pwd`
ARCHS="i386 armv6 armv7" ARCHS="i386 armv7 armv7s"
DEVELOPER=`xcode-select -print-path` DEVELOPER=`xcode-select -print-path`
if [ ! -d "$DEVELOPER" ]; then if [ ! -d "$DEVELOPER" ]; then
echo "xcode path is not set correctly $DEVELOPER does not exist (most likely because of xcode 4.3)" echo "xcode path is not set correctly $DEVELOPER does not exist (most likely because of xcode > 4.3)"
echo "run" echo "run"
echo "sudo xcode-select -switch <xcode path>" echo "sudo xcode-select -switch <xcode path>"
echo "for default installation:" echo "for default installation:"
@ -90,9 +90,9 @@ do
done done
echo "Build library..." echo "Build library..."
lipo -create ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv6.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7.sdk/lib/libssl.a -output ${CURRENTPATH}/lib/libssl.a lipo -create ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7s.sdk/lib/libssl.a -output ${CURRENTPATH}/lib/libssl.a
lipo -create ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv6.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7.sdk/lib/libcrypto.a -output ${CURRENTPATH}/lib/libcrypto.a lipo -create ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7s.sdk/lib/libcrypto.a -output ${CURRENTPATH}/lib/libcrypto.a
mkdir -p ${CURRENTPATH}/include mkdir -p ${CURRENTPATH}/include
cp -R ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/include/openssl ${CURRENTPATH}/include/ cp -R ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/include/openssl ${CURRENTPATH}/include/