From 67c1d7b2923ad7828adf1a84330d462996a33cc9 Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Fri, 27 Feb 2015 17:34:37 -0800 Subject: [PATCH] This makes iOS builds possible on Xcode < 5. --- libretro-config.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libretro-config.sh b/libretro-config.sh index cce972a0..d09afb28 100755 --- a/libretro-config.sh +++ b/libretro-config.sh @@ -28,9 +28,10 @@ case "$platform" in FORMAT=_ios FORMAT_COMPILER_TARGET=ios FORMAT_COMPILER_TARGET_ALT=ios - export IOSSDK=$(xcrun -sdk iphoneos -show-sdk-path) - IOSVER_MAJOR=$(xcrun -sdk iphoneos -show-sdk-platform-version | cut -c '1') - IOSVER_MINOR=$(xcrun -sdk iphoneos -show-sdk-platform-version | cut -c '3') + export IOSSDK=$(xcodebuild -version -sdk iphoneos Path) + iosver=$(xcodebuild -version -sdk iphoneos ProductVersion) + IOSVER_MAJOR=${iosver%.*} + IOSVER_MINOR=${iosver#*.} IOSVER=${IOSVER_MAJOR}${IOSVER_MINOR} # Apple requires this stuff