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?
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.
type: ~/Library/Application Support/iPhone Simulator.
# 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.
Close all simulators and just run
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
to restart the service. All simulators will launch as usual.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With