Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix iPhone SDK version detection in Xcode 7
  • Loading branch information
phatblat committed Aug 9, 2015
commit 768f033f0bf95c01793a941311cdbf45a7fb975c
2 changes: 1 addition & 1 deletion script/xcode_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function ios_sdk_version ()
{
# This relies on the fact that the latest iPhone SDK
# is the last thing listed before the Xcode version.
/usr/bin/xcodebuild -version -sdk 2> /dev/null | grep SDKVersion | tail -n 1 | awk '{ print $2 }'
/usr/bin/xcodebuild -version -sdk 2> /dev/null | grep -A 1 '^iPhone' | tail -n 1 | awk '{ print $2 }'
}

# Returns the path to the specified iOS SDK name
Expand Down