Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Software caused connection abort. Error returned in reply:Connection invalid

Tags:

My Xcode 9 gives the message to which I don't know how to respond. I want to run the app to my simulator, and I am getting this weird message. Attaching the snapshot for the same. enter image description here

like image 393
Kumar Utsav Avatar asked Jun 19 '17 07:06

Kumar Utsav


Video Answer


3 Answers

  • If you are using two versions of Xcode, remove one or quit all Xcode and simulators.
  • Go to preferences and Set proper version for command line tools
  • click on Derived Data, go to Derived data and delete that folder or simply use rm -rf ~/Library/Developer/Xcode/DerivedData
  • Click on Simulator reset content settings and just quit XCode and simulator and open clear and build the Xcode and run it.
like image 182
Vishal Rajole Avatar answered Sep 28 '22 09:09

Vishal Rajole


Swapping between 2 versions of Xcode (8.3.3 and 9 GM) gave me this problem in Xcode 9. Solved by Xcode->Preferences->Locations->Command Line Tools, set to Xcode 9. Needed to quit Xcode and the simulator, but it then worked.

like image 37
wheeliebin Avatar answered Sep 28 '22 08:09

wheeliebin


I had the same issue:

Try to: - kill simulator (force quit)

if it won't work, restart mac - it is funny but for me it worked

like image 21
Robert Avatar answered Sep 28 '22 07:09

Robert