We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7eb46c commit 768f033Copy full SHA for 768f033
script/xcode_functions.sh
@@ -20,7 +20,7 @@ function ios_sdk_version ()
20
{
21
# This relies on the fact that the latest iPhone SDK
22
# 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 }'
+ /usr/bin/xcodebuild -version -sdk 2> /dev/null | grep -A 1 '^iPhone' | tail -n 1 | awk '{ print $2 }'
24
}
25
26
# Returns the path to the specified iOS SDK name
0 commit comments