user3851069
user3851069

Reputation: 455

Unable to boot the simulator

I'm new in development for iOS. My problem was when I run my project, the simulator was with black screen and a message shows "Unable to boot the simulator". I'm working with Xcode version 7.3.1.

enter image description here

Upvotes: 9

Views: 7445

Answers (7)

Ahmed Raza
Ahmed Raza

Reputation: 540

  1. Close the simulator.
  2. In the terminal, run:

rm -R ~/Library/Developer/CoreSimulator/Caches

Or run with sudo, if it says that access is denied:

sudo rm -R ~/Library/Developer/CoreSimulator/Caches
  1. Start the simulator

Upvotes: 0

Amir Hajiha
Amir Hajiha

Reputation: 935

Go to About This Mac > More Info > Storage > Manage > Delete Xcode Cache and all old versions of iOS. Then run again

Upvotes: 20

Jorge Pastor
Jorge Pastor

Reputation: 1038

The only thing that worked for me was deleting the simulator caches from the terminal. After that, I was able to open the simulator as usual.

rm -r ~/Library/Developer/CoreSimulator/Caches

Upvotes: 17

Parth Sheth
Parth Sheth

Reputation: 21

In this case, launchd is crashing when trying to launch This could be as a result of deleting the /private/tmp folder. To resolve this go to terminal and use this command.

sudo mkdir /private/tmp

sudo chmod 1777 /private/tmp

Upvotes: 2

Eneko Alonso
Eneko Alonso

Reputation: 19662

I got this issue today (Oct 25, 2018) while working on a computer with a Mojave 10.14.0 beta, which I believed has "expired".

Everything in the system worked well, except for the simulators. I couldn't launch any of them (iOS, tvOS...).

Upgrading the OS to 10.14 (final version) solved the issue.

Upvotes: 1

user3110567
user3110567

Reputation: 31

Change the tmp folder permission will solve the problem

Open terminal -> chmod 777 tmp

Upvotes: 3

mukul
mukul

Reputation: 382

Try to reset content and settings of simulator by clicking on the simulator tab on the top.

Upvotes: 0

Related Questions