IOS simulator does not start

I have come across this problem over and over again. Can anyone solve this problem besides rebooting the Mac?

I already tried these tricks

  • simulator → services → a reset content and settings ,
    closing xcode and reopening
    xcode → toos developer → simulator → (open simulator) ,
    exit the simulator Activity Monitor → (the simulator is closed, so there is nothing here to force it to close)

  • First of all, drop your simulator.
    And then close and restart Xcode.
    And then run your project.

  • Restart xcode and simulator

+14
source share
6 answers

I also have this problem and googled it, which redirect to this question. My was xcode10 What I did is this

  1. Exit Simulator and Xcode.
  2. Opened Activity monitor , chose the cpu option and search for sim , killing the whole process shown as a result.
  3. Then launched the terminal and launched sudo xcrun simctl erase all . This will remove all content from all simulators. According to the content, if you log in somewhere, the password will disappear, all the developer applications installed in this simulator will disappear.

This solved my problem. Hope it helps.

+36
source

In the section Product -> Scheme -> Edit Scheme check these settings once.

Edit scheme window screenshot

+14
source

In Xcode, select the tab Product > Scheme > Edit Scheme > Run > Options .

Confirm Launch due to a background fetch event not selected .

See image below ...

enter image description here

0
source

A long shot, but in my case, I just moved my Xcode to Applications and restarted Xcode .

0
source

Enable / change location in xcode console. It worked for me.

0
source

None of the above solutions helped me.

I tried too

 sudo killall -10 com.apple.CoreSimulator.CoreSimulatorService 

And even after a clean reinstall of Xcode, my simulators continue to close after starting.

So I removed all the simulators from Window - Device & Organizers Remove all simulators

And then he added a new

Add new simulators

And the problem is gone

0
source

Source: https://habr.com/ru/post/984307/


All Articles