Created
September 23, 2014 13:17
-
-
Save lippling/c82d754266a40ce6405a to your computer and use it in GitHub Desktop.
Show installed iOS Simulators (Xcode 6+)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
xcrun simctl list
command can be used to see the correspondence between the simulator names and the device UDIDs. Or more specifically thexcrun simctl list devices
command.