Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Simulator crashes after boot with "available but has no defaultDisplay"

While running a project into the simulator, it crashes after booting:

Crash: 'NSInternalInconsistencyException', reason: 'Device <redacted>, Booted) is available but has no defaultDisplay' 

I already cleaned the project files and changed the iOS image but it crashes anyway. Any clue?

like image 276
ricardopereira Avatar asked Aug 06 '18 13:08

ricardopereira


People also ask

Can we run iOS Simulator without Xcode?

Well, that's not entirely true, you can actually still directly launch iOS Simulator without opening Xcode first by creating an alias. Note that modern versions of Xcode and OS X call the iOS Simulator simply “Simulator”, where you go will depend on which version of OS X the Mac is running.

Where does the iPhone Simulator store its data?

type: ~/Library/Application Support/iPhone Simulator.

How do I access iOS Simulator files?

# Open application folder in Finder First, copy the path to the app folder from Xcode console. Then open Finder, click on Go -> Go to Folder and paste the application directory path. You will now be able to browse all the files in your application folder.


1 Answers

Close all simulators and just run

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService 

to restart the service. All simulators will launch as usual.

like image 117
ricardopereira Avatar answered Oct 02 '22 21:10

ricardopereira