Member-only story

How to remove iOS Simulators

Dunya Kirkali
1 min readMar 30, 2020

--

After every update of Xcode, I end up going through the list of simulators and clean up the old ones that I don’t use anymore.

Until today!

Today I learned a better/easier way of dealing with the problem.

Since I already use fastlane, I can just launch the Interactive Ruby Shell (irb)

$ irb

The I can require fastlane’s device manager class:

2.4.1 :001 > require 'fastlane_core/device_manager'

And finally I can delete all simulators with a certain OS version:

2.4.1 :002 > FastlaneCore::Simulator.delete_all_by_version(os_version: "11.1")

That’s it!

--

--

Dunya Kirkali
Dunya Kirkali

Written by Dunya Kirkali

I'm an engineering manager passionate about empowering engineers to deliver exceptional work through collaboration and innovation.

No responses yet

Write a response