From e1a32b5db2b3f2c20da68e8a5d378beaa2aa8408 Mon Sep 17 00:00:00 2001 From: Dmytro Yashkir Date: Wed, 11 Jul 2012 14:34:48 -0400 Subject: [PATCH] added check that xcode-path return existing directory, to check xcode 4.3 command line tools install issue --- build-libssl.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build-libssl.sh b/build-libssl.sh index 02e6e30..d25d219 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -35,6 +35,15 @@ CURRENTPATH=`pwd` ARCHS="i386 armv6 armv7" 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 "run" + echo "sudo xcode-select -switch " + echo "for default installation:" + echo "sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer" + exit 1 +fi + set -e if [ ! -e openssl-${VERSION}.tar.gz ]; then echo "Downloading openssl-${VERSION}.tar.gz" @@ -87,4 +96,4 @@ cp -R ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/include/openssl $ echo "Building done." echo "Cleaning up..." rm -rf ${CURRENTPATH}/src/openssl-${VERSION} -echo "Done." \ No newline at end of file +echo "Done."