Skip to content

Instantly share code, notes, and snippets.

@ManWithBear
Last active January 17, 2022 15:18
Show Gist options
  • Save ManWithBear/63b36239f1c1a30ec1839bfad6e8f202 to your computer and use it in GitHub Desktop.
Save ManWithBear/63b36239f1c1a30ec1839bfad6e8f202 to your computer and use it in GitHub Desktop.
Create my simulators setup
#!/bin/bash
xcrun simctl delete $(xcrun simctl list | grep -o '[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}' | xargs)
xcrun simctl delete unavailable
runtime="com.apple.CoreSimulator.SimRuntime.iOS-12-2"
xcrun simctl create "1. Monday (X)" com.apple.CoreSimulator.SimDeviceType.iPhone-X $runtime
xcrun simctl create "2. Tuesday (Air 2)" com.apple.CoreSimulator.SimDeviceType.iPad-Air-2 $runtime
xcrun simctl create "3. Wednesday (8)" com.apple.CoreSimulator.SimDeviceType.iPhone-8 $runtime
xcrun simctl create "4. Thursday (8 Plus)" com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus $runtime
xcrun simctl create "5. Friday (SE)" com.apple.CoreSimulator.SimDeviceType.iPhone-SE $runtime
@ManWithBear
Copy link
Author

Delete all simulators and create 5 new

@ManWithBear
Copy link
Author

ManWithBear commented Jan 17, 2022

Update for 15.2

runtime="com.apple.CoreSimulator.SimRuntime.iOS-15-2"
xcrun simctl create "1. Monday (13)" com.apple.CoreSimulator.SimDeviceType.iPhone-13 $runtime
xcrun simctl create "2. Tuesday (iPad Pro 11)" com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-3rd-generation $runtime
xcrun simctl create "3. Wednesday (8)" com.apple.CoreSimulator.SimDeviceType.iPhone-8 $runtime
xcrun simctl create "4. Thursday (13 Pro Max)"  com.apple.CoreSimulator.SimDeviceType.iPhone-13-Pro-Max $runtime
xcrun simctl create "5. Friday (SE)" com.apple.CoreSimulator.SimDeviceType.iPhone-SE $runtime

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