Skip to content

Instantly share code, notes, and snippets.

View workwithnano's full-sized avatar
👶
Hard at work (if the boss is looking)

Nano workwithnano

👶
Hard at work (if the boss is looking)
View GitHub Profile
@workwithnano
workwithnano / simulator_populator
Last active August 29, 2015 14:25 — 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(.*) \(([^)]+)\) (.*)/