Show Menu

Need an iOS Developer?

Submit your 30 day Job Listing for FREE

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?

Ok, so incase you are wondering what I am on about. Here is a screenshot:

duplicate simulators in xcode

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 (https://github.com/krausefx/snapshot#installation):


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. A very quick tip how to remove the duplicated simulators that Xcode seems to have a bug for.

having issues?

We have a Questions and Answer section where you can ask your iOS Development questions to thousands of iOS Developers.

Ask Question

FREE Download!

Get your FREE Swift 2 Cheat Sheet and quick reference guide PDF download when you sign up to SwiftMonthly


Sharing is caring

If you enjoyed this tutorial, please help us and others by sharing using one of the social media buttons below.


iOS-Blog Admin Team

Written by:

We're here to help.

Comments

comments