This makes iOS builds possible on Xcode < 5.

This commit is contained in:
T. Joseph Carter 2015-02-27 17:34:37 -08:00
parent b05fe5d68e
commit 67c1d7b292

View File

@ -28,9 +28,10 @@ case "$platform" in
FORMAT=_ios FORMAT=_ios
FORMAT_COMPILER_TARGET=ios FORMAT_COMPILER_TARGET=ios
FORMAT_COMPILER_TARGET_ALT=ios FORMAT_COMPILER_TARGET_ALT=ios
export IOSSDK=$(xcrun -sdk iphoneos -show-sdk-path) export IOSSDK=$(xcodebuild -version -sdk iphoneos Path)
IOSVER_MAJOR=$(xcrun -sdk iphoneos -show-sdk-platform-version | cut -c '1') iosver=$(xcodebuild -version -sdk iphoneos ProductVersion)
IOSVER_MINOR=$(xcrun -sdk iphoneos -show-sdk-platform-version | cut -c '3') IOSVER_MAJOR=${iosver%.*}
IOSVER_MINOR=${iosver#*.}
IOSVER=${IOSVER_MAJOR}${IOSVER_MINOR} IOSVER=${IOSVER_MAJOR}${IOSVER_MINOR}
# Apple requires this stuff # Apple requires this stuff