Recently I have very bad experience with simulators. I can't run them at all, almost immediately crash upon launching. Preview in Xcode works occasionally. I tried today to reinstall macOS, Xcode, (I erased my HDD before that). I started a fresh new project in Xcode and I can't run it on the simulator, it crashes instantly.
What I noticed from the logs is that:
Sep 27 22:07:14 Vasils-MacBook-Pro CoreSimulatorService[810] : com.apple.CoreSimulator.CoreSimulatorService 920.6 starting.
Sep 27 22:07:23 Vasils-MacBook-Pro CoreSimulatorService[810] : Unable to load device.plist: /Users/bacata.borisov/Library/Developer/CoreSimulator/Devices/DC8880C0-5D67-4DAA-95B6-75043F690485/device.plist
Sep 27 22:07:23 Vasils-MacBook-Pro CoreSimulatorService[810] : Failed to create device at path /Users/bacata.borisov/Library/Developer/CoreSimulator/Devices/DC8880C0-5D67-4DAA-95B6-75043F690485.
Sep 27 22:07:23 Vasils-MacBook-Pro CoreSimulatorService[810] : Device iPhone 12 Pro Max (1319CD25-F09C-4BC4-8E8C-E1A7D810BDC0, iOS 17.0, Booted) encountered in unexpected state at launch: Booted. Shutting down.
Sep 27 22:07:23 Vasils-MacBook-Pro com.apple.Console[808] : Unable to discover any Simulator runtimes. Developer Directory is /Applications/Xcode.app/Contents/Developer.
Sep 27 22:07:23 Vasils-MacBook-Pro CoreSimulatorService[810] : Found duplicate SDKs for appletvos17.0:
Basically it doesn't see the runtime even though it is installed. Has anybody else experienced that? I am going a little bit crazy already
I don't know where exactly the runtime is supposed to be, do you have any suggestions?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: