Skip to content

Commit 768f033

Browse files
committed
Fix iPhone SDK version detection in Xcode 7
1 parent d7eb46c commit 768f033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/xcode_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function ios_sdk_version ()
2020
{
2121
# This relies on the fact that the latest iPhone SDK
2222
# is the last thing listed before the Xcode version.
23-
/usr/bin/xcodebuild -version -sdk 2> /dev/null | grep SDKVersion | tail -n 1 | awk '{ print $2 }'
23+
/usr/bin/xcodebuild -version -sdk 2> /dev/null | grep -A 1 '^iPhone' | tail -n 1 | awk '{ print $2 }'
2424
}
2525

2626
# Returns the path to the specified iOS SDK name

0 commit comments

Comments
 (0)