Skip to content

Instantly share code, notes, and snippets.

@ahcode0919
Last active June 14, 2017 17:25
Show Gist options
  • Save ahcode0919/bc54a948a6536ef726f8f26d5bd8e1d7 to your computer and use it in GitHub Desktop.
Save ahcode0919/bc54a948a6536ef726f8f26d5bd8e1d7 to your computer and use it in GitHub Desktop.
Get current iOS Simulator version from command line
read SIMVERSION <<< $(xcrun simctl list | awk '/^iOS[[:space:]][0-9\.]+/ { print $2 }')
#echo $SIMVERSION
#Output: 10.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment