Skip to content

Instantly share code, notes, and snippets.

View vicwomg's full-sized avatar

Vicwomg vicwomg

  • San Francisco
View GitHub Profile
@vicwomg
vicwomg / simulator_populator
Created July 31, 2015 21:13 — forked from cabeca/simulator_populator
This script removes and recreates all simulators in Xcode 6.
#!/usr/bin/env ruby
device_types_output = `xcrun simctl list devicetypes`
device_types = device_types_output.scan /(.*) \((.*)\)/
runtimes_output = `xcrun simctl list runtimes`
runtimes = runtimes_output.scan /(.*) \(.*\) \((com.apple[^)]+)\)$/
devices_output = `xcrun simctl list devices`
devices = devices_output.scan /\s\s\s\s(.*) \(([^)]+)\) (.*)/