diff --git a/README.md b/README.md index 5fbb951..63663da 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ From and ## 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-02: OpenSSL 1.0.1b * 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!** -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. \ No newline at end of file +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. \ No newline at end of file diff --git a/build-libssl.sh b/build-libssl.sh index 67f820d..5925353 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -22,7 +22,7 @@ # Change values here # # # VERSION="1.0.1c" # -SDKVERSION="5.1" # +SDKVERSION="6.0" # # # ########################################################################### # # @@ -32,11 +32,11 @@ SDKVERSION="5.1" # CURRENTPATH=`pwd` -ARCHS="i386 armv6 armv7" +ARCHS="i386 armv7 armv7s" DEVELOPER=`xcode-select -print-path` 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 "sudo xcode-select -switch " echo "for default installation:" @@ -90,9 +90,9 @@ do done 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 cp -R ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/include/openssl ${CURRENTPATH}/include/