Reputation: 9666
When I try to run my project through the Xcode simulator, it keeps giving me the error "Software caused connection abort".
Tried restarting the simulator & Xcode, and I recently deleted the DerivedData folder as suggested in this post about broken playgrounds so that also didn't help.
Upvotes: 69
Views: 34942
Reputation: 5160
QUICK FIX
This is happening because you have multiple versions of Xcode installed. MacOS unfortunately only supports running one version of Xcode at a time, and it needs to know the location of the currently running version. To sort things out, choose one of the following:
Quit all instances of Xcode and restart it
Try one of the other options below if that hasn't solved it.
Using the command line:
run sudo xcode-select --switch /Applications/your_custom_folder_if_needed/Xcode.app
Restart your terminal and Xcode and it will work just fine.
No-command line users:
Upvotes: 108
Reputation: 1275
In my case quitting and re-launching given Xcode was enough. I had two Xcodes, stable and beta.
Upvotes: 11
Reputation: 5951
It's due to multiple Xcode installed in your system. This is how you make it work:
Command Line Tools
Clean project and clear Derived data if necessary, then run!
Upvotes: 56