Xcode error connecting to simulator "Software caused connection interruption"

When I try to start my project using the Xcode simulator, it continues to give me the error "Software caused by disconnection".

I tried restarting the simulator and Xcode, and I recently deleted the DerivedData folder as suggested in this post about broken playgrounds so that this also doesn't help.

+44
xcode ios-simulator
Apr 20 '17 at 18:23
source share
4 answers

QUICK FIX

This is because you have several versions of Xcode installed. You must be sure that your OS knows what the current version you are using is. Correct the following:

Finish and restart Xcode

Follow below if you do not decide.

Using commands:

  • run sudo xcode-select --switch /Applications/your_custom_folder_if_needed/Xcode.app

  • Reboot the terminal and Xcode and it will work fine.

Users without a command line:

  • Restart xcodes
  • Go to Xcode → Settings → Location
  • Choose the correct version in the command line tools
  • Done!
+68
May 31 '17 at 3:21 p.m.
source share
— -

This is due to several Xcode installed on your system. Here's how you do it:

  • Close all running Xcodes
  • Restart xcode
  • Go to Xcode> Preferences> Location
  • Change the correct version in Command Line Tools

Clear the project and clear the derived data, if necessary, then run!

+49
Jun 08 '17 at 4:55 on
source share

In my case, leaving and restarting this Xcode was enough. I had two Xcodes, stable and beta.

+9
Jul 26 '17 at 10:29
source share

It has been shown that removing content ~/Library/Developer/CoreSimulator works as suggested in this thread on Apple forums .

(I think I got to this place by accidently launching two versions of Xcode at the same time.)

+3
Apr 20 '17 at 18:23
source share



All Articles