Quick Tip: Fix Xcodes Multiple Simulator Bug

I only noticed this issue with Xcode 8 However I have found after talking to other developers that this has been a problem for a few in different versions of Xcode.

In This Quick Tip I will show you hoe to solve the problem of multiple simulators in Xcode.

Duplicate Simulators?

Now. Let me show you a few ways how to fix it. The first is to open up Terminal and run the following command:

xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1 | xargs -I {} xcrun simctl delete "{}"

This will delete ALL the simulators. Then you can go to: Window > Devices and add the simulators back in. The ones you actually want.

You could also use the following command, if you have SnapShot installed :

snapshot reset_simulators

If you don’t already have snapshot installed:

sudo gem install snapshot.

Finally, if any of these do not work for you. You can go to Window > Device and manually delete all the Simulators there.

There you have it.