diff --git a/dist-build/iphone.sh b/dist-build/iphone.sh index 70a0bc1d..6c2beb92 100755 --- a/dist-build/iphone.sh +++ b/dist-build/iphone.sh @@ -1,9 +1,9 @@ #! /bin/sh -export XCODEDIR="/Applications/Xcode.app/Contents/Developer" +export XCODEDIR=$(xcode-select -p) export BASEDIR="${XCODEDIR}/Platforms/iPhoneOS.platform/Developer" export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH" -export SDK="${BASEDIR}/SDKs/iPhoneOS7.0.sdk" +export SDK="${BASEDIR}/SDKs/iPhoneOS7.1.sdk" export CFLAGS="-Oz -mthumb -arch armv7 -isysroot ${SDK}" export LDFLAGS="-mthumb -arch armv7 -isysroot ${SDK}" export PREFIX="$(pwd)/libsodium-ios"