Skip to content

Instantly share code, notes, and snippets.

@lippling
Created September 23, 2014 13:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lippling/c82d754266a40ce6405a to your computer and use it in GitHub Desktop.
Save lippling/c82d754266a40ce6405a to your computer and use it in GitHub Desktop.
Show installed iOS Simulators (Xcode 6+)
find ~/Library/Developer/CoreSimulator/Devices/ -name device.plist -exec sh -c "/usr/libexec/PlistBuddy -c \"print UDID\" '{}' | tr '\n' ' '" \; -exec sh -c "/usr/libexec/PlistBuddy -c \"print name\" '{}' | tr '\n' ' '" \; -exec sh -c "/usr/libexec/PlistBuddy -c \"print runtime\" '{}' | sed -n 's/com\.apple\.CoreSimulator.SimRuntime\.\(.*\)/\1/p'" \;
@thomasaw
Copy link

thomasaw commented Oct 2, 2014

The xcrun simctl list command can be used to see the correspondence between the simulator names and the device UDIDs. Or more specifically the xcrun simctl list devices command.

@lippling
Copy link
Author

lippling commented Nov 7, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment